[Poppler-bugs] [Bug 19777] pdftops command line utility does not convert multiple-page-size documents correctly
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jun 1 04:02:59 PDT 2009
http://bugs.freedesktop.org/show_bug.cgi?id=19777
--- Comment #2 from Till Kamppeter <till.kamppeter at gmail.com> 2009-06-01 04:02:57 PST ---
Created an attachment (id=26338)
--> (http://bugs.freedesktop.org/attachment.cgi?id=26338)
Patch to add support for multiple page size output
The attached patch fixes the problem by adding a new "-origpagesizes" output
mode to the "pdftops" utility.
pdftops -origpagesizes combined.pdf
produces the expected output as combined.ps with combined.pdf being the
attached sample PDF file.
The patch works as described by Albert Astals Cid in comment #1. The PostScript
output device gets a new output mode psModePSOrigPageSizes. If it is selected
pages do not get scaled and rotated into a given output page size, but the
original page sizes are conserved and none of the pages gets rotated. The page
headers contain page size requests of the form
<</PageSize [<width> <height>]>> setpagedevice
to make a printer switching to the appropriate paper tray.
The patch does not change the API or default behavior of Poppler. The new mode
is only used when explicitly selected.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list