mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-11 05:18:40 +00:00
* M10: the Print dialog remembers two-sided, grayscale, collate, sizing and comments & forms (#2001) Persist the choices that describe how this computer prints and restore them on the next launch, under the names doc_print takes; copies, pages, layout, orientation and the printer still start fresh for each job. Those names now live in one place, pdfcraft_print::names, used by the tool and the settings file. Settings are untrusted: an unknown name or a custom scale outside the dialog's 1..=1000 % keeps the default. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * M10: the Print dialog also remembers a booklet's binding side (#2707) Acrobat keeps the booklet binding (left or right) between prints; PdfCraft started at Left every time. It is now kept with the other remembered print choices, named as doc_print names it, and an unknown saved value keeps the default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M10: Print starts each job's copies, pages, layout and orientation afresh (#2001) CodeRabbit on #2103: the README promised that copies, pages, layout and orientation start fresh, but open_print carried them over through `..keep` within a session. ISO 32000-2 Table 147 initialises these per document when the print dialog opens (NumCopies "typically 1", PrintPageRange), so each opening now resets them to the defaults (Selected pages still win when thumbnails are picked); two-sided, grayscale, collate, sizing, Comments & forms, binding, the paper and the printer picked last carry over as before. Two-sided names now include "printer" (leave it to the printer, main's default since #2422), so that choice is remembered too. main's paper-persistence test expected grayscale not to persist; it is one of the remembered preferences. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M10: a new print job also resets its layout's own options and leaves Label (#2001) CodeRabbit on #2103: resetting the layout to Size kept pages per sheet, order, borders, booklet subset and the poster options through `..keep`, so choosing Multiple again brought back, say, a cut-and-stack order; and a job printed on Label went back to Size without giving back the paper Label replaced. open_print now leaves Label through set_handling (#3564) and resets the layout's own options with the rest of the job's choices; the binding and sizing stay remembered. The README now says what resets on each opening and what carries over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M10: the Print dialog also remembers Print as image and its resolution (#6392) A printer that needs pictures keeps getting them after a restart: as_image and dpi are saved with the other print preferences and restored, a resolution the dialog doesn't offer keeping the default 300 dpi. The bad-settings checks move to their own test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: mtlcl410 <chuanlin@niar.org.tw>