Pack print: A4 upright pages, small pictures at their size, card sides on one sheet
Every page of the pack is now A4 upright, so it prints as one stack. A
PDF page or a whole-page picture that lies wider than tall is turned
onto the page (a small one that fits as it is stays as it is), and a
PDF page is only made smaller, never larger.
A picture never prints larger than its resolution allows (the JFIF or
PNG dpi, else 150 dpi), nor larger than its kind's box: passport pages,
visas and stamps 180 x 128 mm, cards 130 x 90 mm, and a phone's
screenshot (the TDAC, or any picture about twice as tall as wide)
150 x 75 mm. These print at the top of the page.
Cards: a new kind "ID card", and the work permit, take two pictures in
one upload as front and back (migration 0008 documents.back_of). The
Documents tab marks them front/back, lists them together and offers
"Print both sides" (.../documents/{id}/sides.pdf); the pack prints both
on one sheet. The client link takes ID cards too. The demo seeds a TDAC
screenshot and an ID card's two sides.
Checks: fmt, clippy, 108 unit and 57 integration tests (print sizes,
dpi reading, the back following its front, the paired upload, its
audit and the sides PDF); the demo pack's pages checked as images.
The Documents tab's actions stack on a phone, so none is cut off.
This commit is contained in:
1 parent
506221ecd0
commit
1f526f17f9
16 files changed
+724
-73
No files matched your search
+14
-3
@@ -420,9 +420,20 @@ one `Kind`.
|
||||
- [x] 6.3 One PDF to print (`/people/{id}/pack.pdf`, `src/pack/pdf.rs`): the
|
||||
cover sheet, the five forms, then every copy in the pack's order. An
|
||||
uploaded PDF goes in page by page as it is (a PDF 2.0 file makes the
|
||||
pack 2.0), an image is fitted on an A4 page of its own orientation and
|
||||
turned as its EXIF tag says, and a file that cannot be read gets a page
|
||||
that says so. Bookmarks lead to each item. Opening or saving it logs the
|
||||
pack 2.0), an image is turned as its EXIF tag says, and a file that
|
||||
cannot be read gets a page that says so. Since November 21 (Alex:
|
||||
orient pages for print, do not blow small pictures up to A4, a card's
|
||||
two sides on one sheet) every page is A4 upright: a PDF page or a
|
||||
whole-page picture that lies wider than tall is turned onto it, a PDF
|
||||
page is only made smaller, never larger, and a picture never prints
|
||||
larger than its resolution (its JFIF or PNG dpi, else 150 dpi) nor
|
||||
than its kind's box: passport pages, visas and stamps 180 x 128 mm,
|
||||
cards 130 x 90 mm, a phone's screenshot (TDAC, or anything twice as
|
||||
tall as wide) 150 x 75 mm, at the top of the page. The new kind "ID
|
||||
card" and the work permit are cards: two pictures uploaded together
|
||||
are its front and back (`documents.back_of`, migration 0008), listed
|
||||
together, printed on one sheet in the pack and from the Documents tab
|
||||
(`.../documents/{id}/sides.pdf`). Bookmarks lead to each item. Opening or saving it logs the
|
||||
forms' codes and a view or download of every document that went in.
|
||||
- [x] 6.4 A company's page shows its part of every employee's pack, with
|
||||
until when each certification counts and what to upload.
|
||||
|
||||
Reference in new issue
Block a user