[cups.bugs] [MOD] STR #3689: pdftops CUPS filter (Poppler mode) does not conserve paper sizes of input file

Till Kamppeter till.kamppeter at gmail.com
Wed Oct 13 06:22:10 PDT 2010


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

If I print a PDF document with pages of different sizes (for example A4
pages and one A3-sized fold-out page between them) the pages get all
scaled to the default paper size (or the to the page size of the first
page).

This scaling of the pages happens in the pdftops filter when the filter is
built to use Poppler's pdftops utility for the conversion (I do not build
with Ghostscript as the PostScript generated by Ghostscript has a lot of
problems). Formerly, Poppler's pdftops utility did not support generating
PostScript with varying paper sizes. This problem I have solved by adding
the "-origpagesizes" option to the utility and this change got accepted by
Poppler upstream (http://bugs.freedesktop.org/show_bug.cgi?id=19777). Then
I have applied the attached patch to the CUPS packages of Debian and
Ubuntu so that the pdftops filter of CUPS uses the new option and now
there PDFs with varying page sizes get printed correctly.

This gets more and more important as applications are switching to send
PDF instead of PostScript to CUPS when printing, especially all KDE and
many GNOME applications do so, and OpenOffice.org will send PDF from the
next release on. Also when switching over to the PDF printing workflow
(http://www.cups.org/str.php?L2897) the pdftops filter plays and important
role for printing on PostScript printers.

The attached patch fixes pdftops to support documents with varying page
sizes. It also adds a build-time check to verify that the installed
Poppler is really new enough to contain the "-origpagesizes" option in its
pdftops utility.

Link: http://www.cups.org/str.php?L3689
Version: 1.4.4
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: poppler-based-pdftops-fixes.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20101013/365e1b80/attachment.ksh>


More information about the cups-devel mailing list