[Pkg-cups-devel] Bug#613244: cups: images in some PDF files are printed as B/W noise
Timo Juhani Lindfors
timo.lindfors at iki.fi
Sun Feb 13 17:56:57 UTC 2011
Package: cups
Version: 1.4.4-7
Severity: normal
[ My printer works mostly but ironically when I try to print DIY repair
instructions for the toner the images in the instructions contain just
random pixels ]
Steps to reproduce:
1) lp testcase2.pdf
Expected results:
1) the PDF is printed and both images are readable
Actual results:
1) the PDF is printed but random pixels are shown in place of the
two images.
More info:
1) I'm using samsung ml 2010 with splix driver
2) straces shows that the following execve()s are done by cupsd:
13501 execve("/usr/lib/cups/filter/pdftopdf", ["lp", "50", "lindi", "output.pdf", "1", "Resolution=1200x600dpi MediaType=OFF PageSize=A4 PowerSave=5 number-up=1 noJamRecovery Altitude=LOW Duplex=None TonerDensity=5 InputSlot=Auto EconoMode=OFF job-uuid=urn:uuid:1d531381-35af-3480-4619-2707376bf2a3 job-originating-host-name=localhost", "/var/spool/cups/d00050-001"], [/* 29 vars */] <unfinished ...>
13502 execve("/usr/lib/cups/filter/pdftoraster", ["lp", "50", "lindi", "output.pdf", "1", "Resolution=1200x600dpi MediaType=OFF PageSize=A4 PowerSave=5 number-up=1 noJamRecovery Altitude=LOW Duplex=None TonerDensity=5 InputSlot=Auto EconoMode=OFF job-uuid=urn:uuid:1d531381-35af-3480-4619-2707376bf2a3 job-originating-host-name=localhost"], [/* 29 vars */] <unfinished ...>
13503 execve("/usr/lib/cups/filter/rastertoqpdl", ["lp", "50", "lindi", "output.pdf", "1", "Resolution=1200x600dpi MediaType=OFF PageSize=A4 PowerSave=5 number-up=1 noJamRecovery Altitude=LOW Duplex=None TonerDensity=5 InputSlot=Auto EconoMode=OFF job-uuid=urn:uuid:1d531381-35af-3480-4619-2707376bf2a3 job-originating-host-name=localhost"], [/* 29 vars */] <unfinished ...>
13504 execve("/usr/lib/cups/backend/usb", ["usb://Samsung/ML-2010", "50", "lindi", "output.pdf", "1", "Resolution=1200x600dpi MediaType=OFF PageSize=A4 PowerSave=5 number-up=1 noJamRecovery Altitude=LOW Duplex=None TonerDensity=5 InputSlot=Auto EconoMode=OFF job-uuid=urn:uuid:1d531381-35af-3480-4619-2707376bf2a3 job-originating-host-name=localhost"], [/* 29 vars */] <unfinished ...>
13506 execve("/usr/bin/gs", ["/usr/bin/gs", "-dQUIET", "-dPARANOIDSAFER", "-dNOPAUSE", "-dBATCH", "-sDEVICE=cups", "-sstdout=%stderr", "-sOutputFile=%stdout", "-I/usr/share/cups/fonts", "-r1200x600", "-dMediaPosition=1", "-dDEVICEWIDTHPOINTS=595", "-dDEVICEHEIGHTPOINTS=842", "-dcupsBitsPerColor=1", "-dcupsColorOrder=0", "-dcupsColorSpace=3", "-dcupsCompression=17", "-scupsPageSizeName=A4", "-c", "-f", "-_"], [/* 29 vars */] <unfinished ...>
3) To debug the issue I replaced /usr/lib/cups/backend/usb with
#!/bin/sh
# /usr/lib/cups/backend/usb
out="/tmp/usb.$(date +%s)"
cat > "$out"
and then used the "decompress" tool from splix driver source package
to convert this QPDL file to a bitmap. It is attached as testcase2.png.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase2.pdf
Type: application/pdf
Size: 722078 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20110213/a0678073/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase2.png
Type: image/png
Size: 270660 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20110213/a0678073/attachment-0001.png>
-------------- next part --------------
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages cups depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii bc 1.06.95-2 The GNU bc arbitrary precision cal
ii cups-client 1.4.4-7 Common UNIX Printing System(tm) -
ii cups-common 1.4.4-7 Common UNIX Printing System(tm) -
ii cups-ppdc 1.4.4-7 Common UNIX Printing System(tm) -
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii ghostscript 8.71~dfsg2-9 The GPL Ghostscript PostScript/PDF
ii libavahi-client3 0.6.27-2 Avahi client library
ii libavahi-common3 0.6.27-2 Avahi common library
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libcups2 1.4.4-7 Common UNIX Printing System(tm) -
ii libcupscgi1 1.4.4-7 Common UNIX Printing System(tm) -
ii libcupsdriver1 1.4.4-7 Common UNIX Printing System(tm) -
ii libcupsimage2 1.4.4-7 Common UNIX Printing System(tm) -
ii libcupsmime1 1.4.4-7 Common UNIX Printing System(tm) -
ii libcupsppdc1 1.4.4-7 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.2.24-4 simple interprocess messaging syst
ii libgcc1 1:4.4.5-8 GCC support library
ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.8.3+dfsg-4 MIT Kerberos runtime libraries - k
ii libijs-0.35 0.35-7 IJS raster image transport protoco
ii libkrb5-3 1.8.3+dfsg-4 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.23-7 OpenLDAP libraries
ii libpam0g 1.1.1-6.1 Pluggable Authentication Modules l
ii libpaper1 1.1.24 library for handling paper charact
ii libpoppler5 0.12.4-1.2 PDF rendering library
ii libslp1 1.2.1-7.8 OpenSLP libraries
ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-16 userspace USB programming library
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii poppler-utils 0.12.4-1.2 PDF utilitites (based on libpopple
ii procps 1:3.2.8-9 /proc file system utilities
ii ssl-cert 1.0.28 simple debconf wrapper for OpenSSL
ii ttf-freefont 20090104-7 Freefont Serif, Sans and Mono True
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages cups recommends:
pn cups-driver-gutenprint <none> (no description available)
ii foomatic-filters 4.0.5-6 OpenPrinting printer support - fil
ii ghostscript-cups 8.71~dfsg2-9 The GPL Ghostscript PostScript/PDF
Versions of packages cups suggests:
pn cups-bsd <none> (no description available)
pn cups-pdf <none> (no description available)
ii foomatic-db 20100630-1 OpenPrinting printer support - dat
pn hplip <none> (no description available)
pn smbclient <none> (no description available)
ii udev 164-3 /dev/ and hotplug management daemo
pn xpdf-korean | xpdf-japanese | <none> (no description available)
-- debconf information:
cupsys/raw-print: true
cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd
More information about the Pkg-cups-devel
mailing list