Skip to content

Changes

Started by timer
Started 1 day 11 hr ago
Took 1 min 12 sec on built-in

Summary

  1. Print routes: route A5/A4 PDFs to the paper queue with explicit -o media (details)
Commit 9fce9f60003dd71f91f23cfe3b1792f33fc33d7f by info
Print routes: route A5/A4 PDFs to the paper queue with explicit -o media

The Jasper Shipment A5 (420x595 pt) fell under the 500 pt label threshold and
was sent to the Zebra label printer. New server/utils/pdfPageMedia.ts detects
the page size once (pdfinfo, gs fallback) and classifies it: label / a5 / a4 /
other. attachment-smart, order-attachments, picklist and index now send A5 and
A4 pages to the paper queue with -o media=A5|A4 (caller-supplied media wins).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The file was modifiedserver/api/print/picklist.post.ts (diff)
The file was modifiedserver/api/print/attachment-smart.post.ts (diff)
The file was modifiedserver/api/print/index.post.ts (diff)
The file was addedserver/utils/pdfPageMedia.ts
The file was modifiedreference/recipes.md (diff)
The file was modifiedserver/api/print/order-attachments.post.ts (diff)