Bug 31760

Summary: Improvements for use as a CUPS filter
Product: poppler Reporter: Tim Waugh <twaugh>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Tim Waugh 2010-11-19 05:59:18 UTC
CUPS (www.cups.org) uses a wrapper around the pdftops utility from poppler in order to handle PDF documents.  Previously, a private fork of xpdf had been used, with some additions to make it behave more usefully as a CUPS filter.

It would be really useful if pdftops could be enhanced in the following ways:

* pdftops could be instructed to always produce portrait PostScript documents, rotating the input pages as needed

* correct BoundingBox DSC comments for each page in the output

* an additional comment 'cupsRotation: 0' added indicating that no further rotation of the document is required
Comment 1 Albert Astals Cid 2010-11-19 06:45:20 UTC
I understand cups already does that in their copy, so where are the patches?
Comment 2 Tim Waugh 2010-11-22 06:31:15 UTC
CUPS used to have a private fork of xpdf which had been modified in several ways so that it would unconditionally act as a CUPS filter.

I'm not sure of the best approach for getting the needed changes upstream to make pdftops better-behaved as a CUPS filter.  Obviously, unconditional changes will not be any good, so a command line option of some sort is probably the way to go.

Do you think that a single option such as "--cupsfilter" would be acceptable and make sense?
Comment 3 Albert Astals Cid 2010-11-22 11:33:46 UTC
I'd sincerely prefer more fine grained options like
--alwaysPortrait
--addCupsRotation
--fooBar

Than just a huge "--cupsMagic".
Comment 4 GitLab Migration User 2018-08-20 21:52:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/101.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.