[Poppler-bugs] [Bug 72312] [patch] pdftops: Fixes/improvements for -origpagesizes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 15 04:30:48 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=72312

--- Comment #15 from Till Kamppeter <till.kamppeter at gmail.com> ---
Adrian, I have done a test with my HP Color LaserJet CM3530 MFP now. I have
used pdftops with my original patch. With the output of pdftops (both "pdftops
-origpagesizes" and "pdftops -paper A4") duplex printing does not work. If I
comment out the pdfSetupPaper macro calls in the PageSetup sections of each
page, duplex works. so the pdfSetupPaper macro actually breaks duplex.

So what has to be done is to do a setpagedevice of the page size only if it has
changed compared to the previous page. Unfortunately, I have not enough
knowledge in PostScript programming to fix the macro, so I am asking you
whether you could fix it.

I am not sure whether the macro only does the equivalent of

<</PageSize[595 842]/ImagingBBox null>>setpagedevice

In this case we could simply skip its call when the paper size does not change
(at least when I comment it out I get a correct printout and duplex works).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20131215/1e282888/attachment.html>


More information about the Poppler-bugs mailing list