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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 15 00:16:37 PST 2013


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

--- Comment #14 from Adrian Johnson <ajohnson at redneon.com> ---
While working on this I found another problem with the page size setup. With
-origpagesizes setpagedevice is output twice. The first time by the
pdfSetupPaper PS macro (which calls setoutputdevice) using imgURX, imgURY which
is the media box size. Then setpagedevice is output with width, height.

There is also this comment

// Set page size only when it actually changes, as otherwise Duplex
// printing does not work

so I'm not sure how this can be correct since the pdfSetupPaper is
unconditionally calling setpagedevice.

Till, could you look at this and see if it can be fixed to only output
setpagedevice once (preferably using the pdfSetupPaper macro since that is what
is used for mode = psModePS.

-- 
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/c2d760f1/attachment.html>


More information about the Poppler-bugs mailing list