Fit PDF pages wider than the label onto it
deploy / deploy (push) Successful in 9s

A label in landscape or a letter page was cut off: the PDF was rendered
1:1 at 203 dpi and the Datamax printed only what fits its width. Pages
wider than the A6 label (105 x 148 mm, as set up in the printer) are now
rendered again fitted onto the label, which Ghostscript turns to portrait
when that fits better. Pages that fit, like the shipping labels, still
print 1:1.
This commit is contained in:
randy committed 2026-11-01 19:00:25 +01:00
1 parent 0f7c18141b
commit 4d366e8470
2 files changed
+28 -9

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ Unified UI for printing labels/receipts:
== Routes
* `/` -- home page, links to everything below
* `/upload`, `POST /upload` -- upload a PDF/ZPL file and print it (Datamax)
* `/upload`, `POST /upload` -- upload a PDF/ZPL file and print it (Datamax). PDF pages wider than the A6 label (e.g. letter pages or labels in landscape) are turned and fitted onto it, others print 1:1.
* `POST /shipping/zpl` -- print raw ZPL text (see "API usage" below)
* `/test-print` -- print the bundled Datamax test label
* `/epson` -- receipt printing UI (title/body/QR template, or raw ESC/POS mnemonic notation)