mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-05 21:43:08 -05:00
* Print: tell CUPS how the marked sheets run With printer marks, doc_print laid the sheets out from the pages as the document shows them, while print_pdf_marked prints the pages the marks widen. A page the marks widen from portrait to landscape was spooled without orientation-requested 4, so CUPS would shrink its landscape sheet onto portrait paper. Session::check_printer_marks, the scratch-copy check that already runs before Will Print, now returns each page's displayed size on that copy, and doc_print lays the sheets out from them. The sheet count and the automatic CUPS orientation follow the printed sheets, and nothing is rendered twice. spool_job's argument checks still run before Will Print; an orientation in options still stands, and a mixed job still gets none. The marks test now also prints the same page at the same layout with and without trim and registration marks, and checks for ink at a trim mark and a registration target where the unmarked print has blank paper. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Print: keep printed_sheets in the doc_print impl block Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9 --------- Co-authored-by: KenM76 <KenM76> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: KenM76 <[email protected]> Co-authored-by: FredApps <[email protected]>