]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Add input-page-ranges attribute to pdftopdf()
authorMohit Verma <b20215@students.iitmandi.ac.in>
Tue, 25 Jan 2022 20:38:04 +0000 (02:08 +0530)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 20:38:04 +0000 (21:38 +0100)
commitca8cebd8077c0ca3201af09dc4f0dde0879afd99
treeb37d25f5a2243b3b8e821df1eb9732ac2b5a2908
parent5cd20165739912f264609695202862b6aa33e71f
libcupsfilters: Add input-page-ranges attribute to pdftopdf()

Pull request #444

The page-ranges option/attribute applies to the putput page stream going to the printer. If an 8-page input document is printed with number-up=2 one gets 4 sheets, with input pages 1+2, 3+4, 5+6, and 7+8, applying page-ranges=1,4 in addition will give a sheet with input pages 1+2 and 7+8. This way you can easily repeat sheets if they failed to print correctly on the first attempt to print the job.

There was no way to select for example page 1-3 and page 6 from the input and arrange it on 2 sheets with 1+2 and 3+6, for example if only these pages contain exercises which you have to solve. or content relevant for your exam. This is now solved by adding the new input-page-ranges attribute. If you now print with "input-page-ranges=1-3,6 number-up=2" you get exactly what you want (Issue #365).
cupsfilters/pdftopdf/pdftopdf.cc
cupsfilters/pdftopdf/pdftopdf_processor.cc
cupsfilters/pdftopdf/pdftopdf_processor.h