[cups.bugs] [MOD] STR #3063: pdftops doesnotsupportmulti-page-sizedocuments or page size determined by document

Till Kamppeter till.kamppeter at gmail.com
Thu Jan 29 01:15:33 PST 2009


Till Kamppeter wrote:
> Michael R Sweet wrote:
>> Till Kamppeter wrote:
>>> Michael R Sweet wrote:
>>>> Till Kamppeter wrote:
>>>>> This fix looks correct in theory, but in practise it does not work.
>>>>>
>>>>> The intention is to do not impose a paper size if the user did not 
>>>>> supply an option to set the paper size. Unfortunately, CUPS always 
>>>>> adds "media=<PPD default paper size>" to the fifth command line 
>>>>> argument of the filters and so the pdftops filter assumes that the 
>>>>> user has set the paper size. Due to this it is still not possible 
>>>>> to print correctly PDF documents which contain pages of different 
>>>>> sizes.
>>>>>
>>>>> Is it possible to suppress the addition of "media=<PPD default 
>>>>> paper size>" by configuration? Or is another fix required?
>>>> Another change would be required.  The kicker is that we want to
>>>> have a default media size (the one coming from the PPD file or one
>>>> set by the admin/user) but don't want to apply that default for PDF
>>>> printing unless "fitplot" (or the newer fit-to-page that replaces it)
>>>> is set.
>>>>
>>>
>>> So we should change all filters from
>>>
>>> if (options contain PageSize, PageRegion, media, media-col) {
>>>     Activate paper size setting for conversion
>>> }
>>>
>>> to
>>>
>>> if (options contain fitplot, fit-to-page) {
>>>     Activate paper size setting for conversion
>>> }
>>>
>>> Am I right? Should I change the OpenPrinting PDF filters that way and 
>>> you will change the filters currently in CUPS that way?
>>
>> Yes, and already done...
>>
> 
> Thank you. I have updated the filters for the PDF printing workflow 
> appropriately (http://www.cups.org/str.php?L2897, 
> http://www.openprinting.org/download/printing/pdf-printing/pdf-filters-cups.tar.gz). 
> 
> 
>    Till

Note that it works only if pdftops is compiled in the Ghostscript mode 
and Ghostscript 8.64 is used. Poppler's pdftops has a bug which prevents 
from printing documents with pages of different sizes 
(https://bugs.freedesktop.org/show_bug.cgi?id=19777). Ghostscript 8.63 
doe not produce completely DSC-conforming PostScript, which makes pstops 
not recognizing the paper size changes.

    Till




More information about the cups-devel mailing list