What | Removed | Added |
---|---|---|
Summary | okular: printing of certain PDF files does not work (works via "lpr" command) | pdftk 2.02: printing of certain PDF files cannot work with "fit-to-page" (wrong BoundingBox values) |
I think the DSC values are not correct in print-job-data_132.save. print-job-data_132.save contains ------------------------------------------------------------------------------ %%BoundingBox: 0 0 595 842 %%PageBoundingBox: 0 0 311 542 %%PageBoundingBox: 0 0 317 548 ------------------------------------------------------------------------------ Ghostscript shows the actual BoundingBox values for the two pages: ------------------------------------------------------------------------------ # gs -sDEVICE=bbox -dBATCH -dNOPAUSE print-job-data_132.save %%BoundingBox: 142 149 453 692 %%BoundingBox: 138 147 456 695 ------------------------------------------------------------------------------ When I change the BoundingBox values in print-job-data_132.save as follows: ------------------------------------------------------------------------------ %%BoundingBox: 138 147 456 695 %%PageBoundingBox: 142 149 453 692 %%PageBoundingBox: 138 147 456 695 ------------------------------------------------------------------------------ then the CUPS printing option fit-to-page works for this file. I.e. the BoundingBox values in the PostScript are wrong. The PostScript is created by pdftk: ------------------------------------------------------------------------------ # grep Creator print-job-data*save print-job-data_131.save:%%Creator: pdftk 2.02 - www.pdftk.com print-job-data_132.save:%%Creator: pdftk 2.02 - www.pdftk.com ------------------------------------------------------------------------------ According to my analysis it means: Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript that is created by "pdftk 2.02". Therefore it seems to be a bug in "pdftk 2.02" (or in whatever helper-tool or library that is used by pdftk to crate PostScript). Stefan Brandner, I think you should submit a new bug report for pdftk.