pdftopdf produces unwanted copies
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
Research direction
Start in cupsfilters/pdftopdf/pdftopdf.cxx around the hw_collate condition and compare the supplied patch with the current code. Reproduce printing with manual_copies off to a PostScript printer, then verify that pdftopdf does not create software copies in addition to the printer's hardware copies.
Written by the indexing model from the issue text.
Description
When manual_copies is off and sending to a PostScript printer, pdftopdf
still produces software copies, resulting in N*N copies.
Issue observed at version 1.28.17 in Debian bookworm, present still in
current "master" version. Patch tested against Debian; below, re-written
for current version (in plain-text and as attached file).
Cheers, Paul
Paul Szabo psz@maths.usyd.edu.au www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics University of Sydney Australia
--- cupsfilters/pdftopdf/pdftopdf.cxx.ORIG 2024-03-08 04:27:06.000000000 +1100
+++ cupsfilters/pdftopdf/pdftopdf.cxx 2024-04-01 07:01:22.243473122 +1100
@@ -730,9 +730,20 @@
// of a driverless IPP printer (PDF, Apple Raster, PWG Raster, PCLm).
// These printers do always hardware collate if they do hardware copies.
// https://github.com/apple/cups/issues/5433
+ /* PSz 4 Mar 24
+ * - Surely PostScript printers also can collate? Modern printers
+ * accept either/both PDF and/or PS, with similar features.
+ * - Should an inability to collate give us licence to override
+ * the explicit PPD request of "no sw copies"? An override will
+ * likely result in N*N copies, when HW does it also.
+ * - Why pretend to know what the printer can do?
+ * Accepting PostScript also, as a partial (wrong?) fix.
+ */
hw_collate = (final_content_type &&
(strcasestr(final_content_type, "/pdf") ||
strcasestr(final_content_type, "/vnd.cups-pdf") ||
+ strcasestr(final_content_type, "/postscript") ||
+ strcasestr(final_content_type, "/vnd.cups-postscript") ||
strcasestr(final_content_type, "/pwg-raster") ||
strcasestr(final_content_type, "/urf") ||
strcasestr(final_content_type, "/PCLm")));
[Editor's note: Edited for readability]
- Dominant language
- C
- Stars
- 17
- Forks
- 71
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenPrinting/libcupsfilters
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
OpenPrinting/libcupsfilters#222 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OpenPrinting/libcupsfilters#196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenPrinting/libcupsfilters#180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenPrinting/libcupsfilters#179 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenPrinting/libcupsfilters#174 ·
All issues in OpenPrinting/libcupsfilters
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100