Bug 1717701
Summary: | It's impossible to print more than one file in one lpr command to a cups-pdf printer | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Bryan Mason <bmason> | ||||
Component: | cups-pdf | Assignee: | Robert Scheck <redhat-bugzilla> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | epel7 | CC: | extras-qa, fedora, joachim.backes, robert | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 837790 | Environment: | |||||
Last Closed: | 2024-07-09 02:51:44 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 837790 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Bryan Mason
2019-06-05 23:40:02 UTC
Created attachment 1577734 [details]
Proposed patch
This patch changes the way PS is read. Instead of starting with "%!PS" and ending at "%%EOF", it reads the entire input file, but only copies to the output those lines between "%!PS-Adobe-" and "%%EOF". It also looks for "^D%!PS-Adobe-" as a beginning-of-document marker because the CUPS filters don't remove the EOF marker when concatenating PS files together and don't insert a newline after the EOF marker, so it ends up on the same line as the beginning of the next PS document, like:
%!PS-Adobe-3.0
...
%%EOF
^D%!PS-Adobe-3.0
Quick tests in RHEL 7 confirm that you can now run:
lp -d cups-pdf /etc/fstab /etc/fstab /etc/fstab /etc/fstab
and a single four-page PDF document is created.
Same behaviour in F33 This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug. |