feat: print files over 5,08 m are written at their real size
All checks were successful
Build and deploy / Validate source (push) Successful in 13s
Build and deploy / Integration suite on a real stack (push) Successful in 4m36s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m12s

PDF's /UserUnit scale kept long sheets within Acrobat's page limit, but
CorelDRAW, where Dropstar checks the files, ignores it and showed a 12,8 m
sheet at a third of its size. Long sheets now stay one page at real size;
PRINT_PAGE_SCALE=true in the stack goes back to the scale, for a RIP that
refuses pages over the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-28 12:42:27 -03:00
parent ac22f9a2f6
commit 8257ac24ab
4 changed files with 34 additions and 10 deletions

View File

@@ -406,9 +406,10 @@ in a 1,5 cm footer band below the layout, outside the billed length: "DROPSTAR
· Pedido DTF-<Kanban number> · Item 1/2 · date · billed metres" in black
Helvetica, after Dropstar's logo (app/assets), about 1 cm tall (31 pt, Dropstar
2026-10-28; smaller only when it would not fit the 27 cm UV film). A sheet
longer than 5,08 m (PDF's page limit) is scaled with /UserUnit; CorelDRAW
ignores it and shows such a file at 1/UserUnit of its size (a 12,8 m sheet as
18,9 x 425 cm), while the page itself is right. An original used whole as its
longer than 5,08 m (Acrobat's page limit) is written at its real size on one
page since 2026-10-28: with PDF's /UserUnit scale, CorelDRAW, where Dropstar
checks files, showed a 12,8 m sheet as 18,9 x 425 cm. PRINT_PAGE_SCALE=true
in the stack goes back to /UserUnit, for a RIP that refuses pages over 5,08 m. An original used whole as its
own print file (over 300 MB) has no footer. The print proof (app/proof.py):
an order above 10 m, or one whose customer ticked "quero aprovar uma prova" at
checkout (that one arrives marked Aguardando contato), cannot reach Finalizado