[Pkg-cups-devel] Bug#532511: Please don't roudtrip postscript through pdf; it corrupts letters
Anthony DeRobertis
anthony at derobert.net
Tue Jun 9 19:03:32 UTC 2009
Package: cups
Version: 1.3.10-2
Severity: normal
Printer: HP Laserjet 8100
Printing any postscript was, according to the debug output, roundtripped
through PDF. Which, unfortunately, corrupted the fonts in the document,
causing the bottom pixel or few of each letter to be printed at the top.
This problem affected at least LyX (w/ Palatino & Avant Garde, via both
dvips and pdflatex) and OpenOffice (with Tahoma)
Changing the cost of pstops 10 to (from 100) in mime.convs seems to have
worked around this problem (by getting rid of the PDF step). Appended is
the debug log from producing bad output:
D [09/Jun/2009:14:19:56 -0400] cupsdAcceptClient: 9 from localhost (Domain)
D [09/Jun/2009:14:19:56 -0400] cupsdReadClient: 9 POST / HTTP/1.1
D [09/Jun/2009:14:19:56 -0400] cupsdAuthorize: No authentication data provided.
D [09/Jun/2009:14:19:56 -0400] CUPS-Get-Printers
D [09/Jun/2009:14:19:56 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [09/Jun/2009:14:19:56 -0400] cupsdReadClient: 9 POST / HTTP/1.1
D [09/Jun/2009:14:19:56 -0400] cupsdAuthorize: No authentication data provided.
D [09/Jun/2009:14:19:56 -0400] CUPS-Get-Classes
D [09/Jun/2009:14:19:56 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [09/Jun/2009:14:19:56 -0400] cupsdReadClient: 9 POST / HTTP/1.1
D [09/Jun/2009:14:19:56 -0400] cupsdAuthorize: No authentication data provided.
D [09/Jun/2009:14:19:56 -0400] CUPS-Get-Default
D [09/Jun/2009:14:19:56 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [09/Jun/2009:14:19:56 -0400] cupsdCloseClient: 9
D [09/Jun/2009:14:19:56 -0400] cupsdAcceptClient: 9 from localhost (Domain)
D [09/Jun/2009:14:19:56 -0400] cupsdReadClient: 9 POST /printers/LaserJet-8100 HTTP/1.1
D [09/Jun/2009:14:19:56 -0400] cupsdAuthorize: No authentication data provided.
D [09/Jun/2009:14:19:56 -0400] Print-Job ipp://localhost/printers/LaserJet-8100
D [09/Jun/2009:14:19:56 -0400] [Job ???] Auto-typing file...
I [09/Jun/2009:14:19:56 -0400] [Job ???] Request file type is application/postscript.
D [09/Jun/2009:14:19:56 -0400] add_job: requesting-user-name="anthony"
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Adding start banner page "none".
D [09/Jun/2009:14:19:56 -0400] Discarding unused job-created event...
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Adding end banner page "none".
I [09/Jun/2009:14:19:56 -0400] [Job 1553] File of type application/postscript queued by "anthony".
D [09/Jun/2009:14:19:56 -0400] [Job 1553] hold_until=0
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Queued on "LaserJet-8100" by "anthony".
D [09/Jun/2009:14:19:56 -0400] Discarding unused printer-state-changed event...
D [09/Jun/2009:14:19:56 -0400] [Job 1553] job-sheets=none,none
D [09/Jun/2009:14:19:56 -0400] [Job 1553] banner_page = 0
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[0]="LaserJet-8100"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[1]="1553"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[2]="anthony"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[3]="foo.ps"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[4]="1"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[5]="document-name=foo.ps media=Letter sides=one-sided finishings=3 number-up=1 job-uuid=urn:uuid:98eb8c7d-a738-3920-599f-03f63f48f114"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] argv[6]="/var/spool/cups/d01553-001"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[9]="SERVER_ADMIN=root at Tao"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[10]="SOFTWARE=CUPS/1.3.10"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[12]="TZ=America/New_York"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[13]="USER=root"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[16]="IPP_PORT=631"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[17]="CHARSET=utf-8"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[18]="LANG=en_US.UTF-8"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[19]="PPD=/etc/cups/ppd/LaserJet-8100.ppd"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[20]="RIP_MAX_CACHE=8m"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[21]="CONTENT_TYPE=application/postscript"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[22]="DEVICE_URI=hp:/net/HP_LaserJet_8100_Series?ip=172.16.1.101"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[23]="PRINTER=LaserJet-8100"
D [09/Jun/2009:14:19:56 -0400] [Job 1553] envp[24]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Started filter /usr/lib/cups/filter/pstopdf (PID 3058)
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Started filter /usr/lib/cups/filter/pdftopdf (PID 3059)
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Started filter /usr/lib/cups/filter/cpdftocps (PID 3060)
I [09/Jun/2009:14:19:56 -0400] [Job 1553] Started backend /usr/lib/cups/backend/hp (PID 3061)
D [09/Jun/2009:14:19:56 -0400] Discarding unused job-state-changed event...
D [09/Jun/2009:14:19:56 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [09/Jun/2009:14:19:56 -0400] [Job 1553] pstopdf 6 args: 1553 anthony foo.ps 1 document-name=foo.ps media=Letter sides=one-sided finishings=3 number-up=1 job-uuid=urn:uuid:98eb8c7d-a738-3920-599f-03f63f48f114 /var/spool/cups/d01553-001
D [09/Jun/2009:14:19:56 -0400] [Job 1553] PPD: /etc/cups/ppd/LaserJet-8100.ppd
D [09/Jun/2009:14:19:56 -0400] cupsdCloseClient: 9
D [09/Jun/2009:14:19:56 -0400] [Job 1553] Resolution: 600x1200
D [09/Jun/2009:14:19:56 -0400] [Job 1553] Page size: Letter
D [09/Jun/2009:14:19:56 -0400] [Job 1553] Width: 612, height: 792, absolute margins: 12.00, 12.00, 599.76, 779.76
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Relative margins: 12.00, 12.00, 12.24, 12.24
D [09/Jun/2009:14:19:57 -0400] [Job 1553] PPD options: -r600x1200 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
D [09/Jun/2009:14:19:57 -0400] [Job 1553] PostScript to be injected:
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Running cat | /usr/bin/ps2pdf13 -dAutoRotatePages=/None -dAutoFilterColorImages=false -dNOPLATFONTS -dPARANOIDSAFER -sstdout=%stderr -dColorImageFilter=/FlateEncode -dDoNumCopies -dPDFSETTINGS=/printer -r600x1200 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 - -
D [09/Jun/2009:14:19:57 -0400] [Job 1553] GPL Ghostscript 8.64: Set UseCIEColor for UseDeviceIndependentColor to work properly.
D [09/Jun/2009:14:19:57 -0400] PID 3058 (/usr/lib/cups/filter/pstopdf) exited with no errors.
D [09/Jun/2009:14:19:57 -0400] PID 3059 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Device copies: 1; device collate:
D [09/Jun/2009:14:19:57 -0400] [Job 1553] pdftops - copying to temp print file "/var/spool/cups/tmp/4a2ea7cd69e0a"
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF.
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Page = 612x792; 12,12 to 600,780
D [09/Jun/2009:14:19:57 -0400] [Job 1553] slow_collate=0, slow_duplex=0, slow_order=0
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Before copy_comments - %!PS-Adobe-3.0
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %!PS-Adobe-3.0
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%Pages: (atend)
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%BoundingBox: (atend)
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%HiResBoundingBox: (atend)
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%Creator: GPL Ghostscript 864 (pswrite)
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%CreationDate: 2009/06/09 14:19:57
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%DocumentData: Clean7Bit
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%LanguageLevel: 2
D [09/Jun/2009:14:19:57 -0400] [Job 1553] %%EndComments
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Before copy_prolog - %%BeginProlog
D [09/Jun/2009:14:19:57 -0400] Discarding unused printer-state-changed event...
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Before copy_setup - %%Page: 1 1
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Before page loop - %%Page: 1 1
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Copying page 1...
D [09/Jun/2009:14:19:57 -0400] Discarding unused job-progress event...
D [09/Jun/2009:14:19:57 -0400] [Job 1553] pagew = 587.8, pagel = 767.8
D [09/Jun/2009:14:19:57 -0400] [Job 1553] bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
D [09/Jun/2009:14:19:57 -0400] [Job 1553] PageLeft = 12.0, PageRight = 599.8
D [09/Jun/2009:14:19:57 -0400] [Job 1553] PageTop = 779.8, PageBottom = 12.0
D [09/Jun/2009:14:19:57 -0400] [Job 1553] PageWidth = 612.0, PageLength = 792.0
D [09/Jun/2009:14:19:57 -0400] [Job 1553]
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** This file had errors that were repaired or ignored.
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** The file was produced by:
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** >>>> pdftopdf <<<<
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** Please notify the author of the software that produced this
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** file that it does not conform to Adobe's published PDF
D [09/Jun/2009:14:19:57 -0400] [Job 1553] **** specification.
D [09/Jun/2009:14:19:57 -0400] [Job 1553]
D [09/Jun/2009:14:19:57 -0400] [Job 1553] Wrote 1 pages...
D [09/Jun/2009:14:19:57 -0400] PID 3060 (/usr/lib/cups/filter/cpdftocps) exited with no errors.
D [09/Jun/2009:14:19:57 -0400] Discarding unused printer-state-changed event...
D [09/Jun/2009:14:20:05 -0400] Discarding unused printer-state-changed event...
D [09/Jun/2009:14:20:05 -0400] Discarding unused job-progress event...
D [09/Jun/2009:14:20:06 -0400] PID 3061 (/usr/lib/cups/backend/hp) exited with no errors.
D [09/Jun/2009:14:20:06 -0400] [Job 1553] File 0 is complete.
I [09/Jun/2009:14:20:06 -0400] [Job 1553] Completed successfully.
D [09/Jun/2009:14:20:06 -0400] Discarding unused printer-state-changed event...
D [09/Jun/2009:14:20:06 -0400] Discarding unused job-completed event...
D [09/Jun/2009:14:20:07 -0400] [Job 1553] Unloading...
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (100, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cups depends on:
ii adduser 3.110 add and remove users and groups
ii bc 1.06.94-3.1 The GNU bc arbitrary precision cal
ii cups-common 1.3.10-2 Common UNIX Printing System(tm) -
ii debconf [debconf-2.0 1.5.26 Debian configuration management sy
ii ghostscript 8.64~dfsg-1.1 The GPL Ghostscript PostScript/PDF
ii libavahi-compat-libd 0.6.25-1 Avahi Apple Bonjour compatibility
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libcups2 1.3.10-2 Common UNIX Printing System(tm) -
ii libcupsimage2 1.3.10-2 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.2.12-1 simple interprocess messaging syst
ii libgcc1 1:4.4.0-5 GCC support library
ii libgnutls26 2.6.6-1 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.6.dfsg.4~beta1-13 MIT Kerberos runtime libraries - k
ii libijs-0.35 0.35-7 IJS raster image transport protoco
ii libkrb5-3 1.6.dfsg.4~beta1-13 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libpam0g 1.0.1-9 Pluggable Authentication Modules l
ii libpaper1 1.1.23+nmu1 library for handling paper charact
ii libpoppler4 0.10.4-3 PDF rendering library
ii libslp1 1.2.1-7.5 OpenSLP libraries
ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3
ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip
ii perl-modules 5.10.0-22 Core Perl modules
ii poppler-utils [xpdf- 0.10.4-3 PDF utilitites (based on libpopple
ii procps 1:3.2.7-11 /proc file system utilities
ii ssl-cert 1.0.23 simple debconf wrapper for OpenSSL
ii ttf-freefont 20080323-3 Freefont Serif, Sans and Mono True
ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime
Versions of packages cups recommends:
ii avahi-utils 0.6.25-1 Avahi browsing, publishing and dis
ii cups-client 1.3.10-2 Common UNIX Printing System(tm) -
ii cups-driver-gutenprint 5.2.3-2+b1 printer drivers for CUPS
ii foomatic-filters 4.0-20090509-1 OpenPrinting printer support - fil
ii smbclient 2:3.3.4-1 command-line SMB/CIFS clients for
Versions of packages cups suggests:
ii cups-bsd 1.3.10-2 Common UNIX Printing System(tm) -
ii cups-pdf 2.5.0-2 PDF printer for CUPS
ii foomatic-db 20090508-1 OpenPrinting printer support - dat
ii foomatic-db-engine 4.0-20090509-1 OpenPrinting printer support - pro
ii hplip 3.9.4b-1 HP Linux Printing and Imaging Syst
pn xpdf-korean | xpdf-japane <none> (no description available)
-- debconf information:
* cupsys/raw-print: false
* cupsys/backend: ipp, lpd, socket
More information about the Pkg-cups-devel
mailing list