]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Make pdftopdf() also work correctly with auro-rotating off
authorTill Kamppeter <till.kamppeter@gmail.com>
Sun, 3 Apr 2022 22:13:00 +0000 (00:13 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sun, 3 Apr 2022 22:13:00 +0000 (00:13 +0200)
commitf730a1f8c23b11e89e665aba5f77e8dd979db795
tree2e889d4bb757bfe529ac12452dd582ad7eefbc62
parent9b86754edb4362c0765469eac1c315904cc295d9
libcupsfilters: Make pdftopdf() also work correctly with auro-rotating off

If one turns off auto-rotating in the pdftopdf() filter function
(option "nopdfAutoRotate") the orientation of the input page on the
output sheet is manually controlled by the options
"orientation-requested" and "landscape".

The cropping of the pages (with "print-scaling=none") did not work
correctly with auto-rotating turned off. This commit fixes this.

Now all should work correctly as described here:

https://openprinting.github.io/cups/doc/options.html
https://wiki.debian.org/CUPSPdfToPdf
cupsfilters/pdftopdf/pdftopdf_processor.cc
cupsfilters/pdftopdf/pdftopdf_processor.h
cupsfilters/pdftopdf/qpdf_pdftopdf_processor.cc
cupsfilters/pdftopdf/qpdf_pdftopdf_processor.h