mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 03:27:21 -06:00
* M10: odd and even pages are page numbers, as Acrobat counts them (#3984) Even pages only with the range 4–11 printed pages 5, 7, 9 and 11: `narrow` took odd and even places in the chosen pages, and its comment said Acrobat does the same. Acrobat counts page numbers: "if you set the range to 2, 7–10 and choose Even Pages Only, only pages 2, 8, and 10 print" (Adobe Acrobat DC Help, last updated 11/28/2019, Options in the Print dialog box, p. 515; the same example in Using Adobe Acrobat 9 Pro, p. 413). Odd and even now keep the pages whose number is odd or even, for a typed range, picked thumbnails and the current page alike, in the order given, and Reverse turns that round. The header, footer and watermark ranges (marks_ui) and Extract's odd/even filter in #3729 already count page numbers. The new test pins Acrobat's example and the report's ranges. select_listed's tests and cut_stack_printing_through_tools counted places; the latter now asks for even pages of 2–10, which by page number are the 2, 4, 6, 8 and 10 it printed before, so its expected output is unchanged and would fail with places (3, 5, 7, 9). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M10: say that odd and even are page numbers in doc_print, and what page labels still lack (#3984) Review on #4034: the doc_print description says odd/even count page numbers, and the parity note says a document with page labels still counts page numbers there, which the Acrobat help consulted doesn't settle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * M10: cite the cut-stack print test at its path under tests/it (#3984) main moved the automation integration tests into tests/it, so the evidence path added for odd/even printing no longer existed and `cargo xtask parity` failed after the rebase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>