[Bug 232450] New: CUPS cannot print pdflatex generated PDF files on PS printer
https://bugzilla.novell.com/show_bug.cgi?id=232450 Summary: CUPS cannot print pdflatex generated PDF files on PS printer Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: matthias.andree@gmx.de QAContact: jsmeix@novell.com Pertinent packages: cups-1.2.7-3.2 Direct printing of a A4-sized pdflatex generated PDF files does not seem to work. The job is apparently filtered through pdftops, then through pstops, then sent to the printer (a HP LaserJet 1320 which understands PostScript Level 2), which then discards it. If I read CUPS's error_log, particularly the pstops parts (shown below), correctly, it seems as though pstops were formatting the document to the wrong paper size, which would explain why the printer discards things. CUPS defaults to A4 media size (I overrode the crappy Letter setting in the localhost:631 web interface), the document also has A4 size according to pdfinfo: XXXX@HHHHH:~> pdfinfo Creator: TeX Producer: pdfeTeX-1.21a CreationDate: Mo 08 Jan 2007 01:51:07 CET Tagged: no Pages: 2 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 23277 bytes Optimized: no PDF version: 1.4 I can manually invoke cups's /usr/lib/cups/filter/pdftops filter or /usr/bin/pdftops and print the resulting .ps file of either command with lp without problem (lp -oraw doesn't work though, because paper feed options are inadequate), but I cannot print with "lp pdflatex.pdf". I've tried adding a /etc/cups/pdftops.conf with psPaperSize A4 to no avail. error_log with LogLevel Debug (some personal information masked): D [08/Jan/2007:02:29:49 +0100] cupsdAcceptClient: 9 from localhost (Domain) D [08/Jan/2007:02:29:49 +0100] cupsdReadClient: 9 POST /printers/hp_LaserJet_1320 HTTP/1.1 D [08/Jan/2007:02:29:49 +0100] cupsdAuthorize: No authentication data provided. D [08/Jan/2007:02:29:49 +0100] Print-Job ipp://localhost/printers/hp_LaserJet_1320 D [08/Jan/2007:02:29:49 +0100] print_job: auto-typing file... D [08/Jan/2007:02:29:49 +0100] print_job: request file type is application/pdf. D [08/Jan/2007:02:29:49 +0100] add_job: requesting-user-name="XXXX" I [08/Jan/2007:02:29:49 +0100] Adding start banner page "none" to job 2328. D [08/Jan/2007:02:29:49 +0100] Discarding unused job-created event... I [08/Jan/2007:02:29:49 +0100] Adding end banner page "none" to job 2328. I [08/Jan/2007:02:29:49 +0100] Job 2328 queued on "hp_LaserJet_1320" by "XXXX". D [08/Jan/2007:02:29:49 +0100] Job 2328 hold_until = 0 D [08/Jan/2007:02:29:49 +0100] Discarding unused printer-state-changed event... D [08/Jan/2007:02:29:49 +0100] job-sheets=none,none D [08/Jan/2007:02:29:49 +0100] banner_page = 0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[0]="hp_LaserJet_1320" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[1]="2328" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[2]="XXXX" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[3]="pdflatex.pdf" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[4]="1" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[5]="job-uuid=urn:uuid:20d39f00-7698-364b-4e9c-1e8674b2d406" D [08/Jan/2007:02:29:49 +0100] [Job 2328] argv[6]="/var/spool/cups/d02328-001" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[1]="CUPS_DATADIR=/usr/share/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[2]="CUPS_DOCROOT=/usr/share/doc/packages/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[5]="CUPS_SERVERBIN=/usr/lib/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[6]="CUPS_SERVERROOT=/etc/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[7]="CUPS_STATEDIR=/var/run/cups" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[9]="SERVER_ADMIN=XXXX@XXXXXXXXXXXXXXXX.org" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[10]="SOFTWARE=CUPS/1.2.7" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[11]="TMPDIR=/var/spool/cups/tmp" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[12]="USER=root" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[13]="CUPS_SERVER=/var/run/cups/cups.sock" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[14]="CUPS_ENCRYPTION=IfRequested" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[15]="IPP_PORT=631" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[16]="CHARSET=utf-8" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[17]="LANG=de_DE" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[18]="PPD=/etc/cups/ppd/hp_LaserJet_1320.ppd" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[19]="RIP_MAX_CACHE=8m" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[20]="CONTENT_TYPE=application/pdf" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[21]="DEVICE_URI=hp:/usb/hp_LaserJet_1320_series?serial=00CNHW59RG0C" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[22]="PRINTER=hp_LaserJet_1320" D [08/Jan/2007:02:29:49 +0100] [Job 2328] envp[23]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript" I [08/Jan/2007:02:29:49 +0100] Started filter /usr/lib/cups/filter/pdftops (PID 18608) for job 2328. I [08/Jan/2007:02:29:49 +0100] Started filter /usr/lib/cups/filter/pstops (PID 18609) for job 2328. I [08/Jan/2007:02:29:49 +0100] Started backend /usr/lib/cups/backend/hp (PID 18610) for job 2328. D [08/Jan/2007:02:29:49 +0100] Discarding unused job-state event... D [08/Jan/2007:02:29:49 +0100] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [08/Jan/2007:02:29:49 +0100] cupsdAcceptClient: 11 from localhost (Domain) D [08/Jan/2007:02:29:49 +0100] cupsdCloseClient: 10 D [08/Jan/2007:02:29:49 +0100] cupsdReadClient: 11 POST / HTTP/1.1 D [08/Jan/2007:02:29:49 +0100] cupsdAuthorize: No authentication data provided. D [08/Jan/2007:02:29:49 +0100] Get-Jobs ipp://localhost/jobs D [08/Jan/2007:02:29:49 +0100] cupsdProcessIPPRequest: 11 status_code=0 (successful-ok) D [08/Jan/2007:02:29:49 +0100] cupsdAcceptClient: 10 from localhost (Domain) D [08/Jan/2007:02:29:49 +0100] cupsdCloseClient: 11 D [08/Jan/2007:02:29:49 +0100] cupsdReadClient: 10 POST / HTTP/1.1 D [08/Jan/2007:02:29:49 +0100] cupsdAuthorize: No authentication data provided. D [08/Jan/2007:02:29:49 +0100] Get-Jobs ipp://localhost/jobs D [08/Jan/2007:02:29:49 +0100] Loading attributes for job 2260... .. D [08/Jan/2007:02:29:49 +0100] Loading attributes for job 2327... D [08/Jan/2007:02:29:49 +0100] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok) D [08/Jan/2007:02:29:49 +0100] PID 18608 (/usr/lib/cups/filter/pdftops) exited with no errors. D [08/Jan/2007:02:29:49 +0100] [Job 2328] pdftops - opened PPD file "/etc/cups/ppd/hp_LaserJet_1320.ppd"... D [08/Jan/2007:02:29:49 +0100] [Job 2328] pdftops - level = 2, width = 595, length = 842 D [08/Jan/2007:02:29:49 +0100] [Job 2328] Page = 595x842; 12,12 to 583,829 D [08/Jan/2007:02:29:49 +0100] [Job 2328] slow_collate=0, slow_duplex=0, slow_order=0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] Before copy_comments - %!PS-Adobe-3.0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %!PS-Adobe-3.0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %Producer: xpdf/pdftops 3.01 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%Creator: TeX D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%LanguageLevel: 2 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%DocumentSuppliedResources: (atend) D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%DocumentMedia: plain 595 842 0 () () D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%BoundingBox: 0 0 595 842 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%Pages: 2 D [08/Jan/2007:02:29:49 +0100] [Job 2328] %%EndComments D [08/Jan/2007:02:29:49 +0100] [Job 2328] Before copy_prolog - %%BeginDefaults D [08/Jan/2007:02:29:49 +0100] [Job 2328] Before copy_setup - %%BeginSetup D [08/Jan/2007:02:29:49 +0100] [Job 2328] Before page loop - %%Page: 1 1 D [08/Jan/2007:02:29:49 +0100] [Job 2328] Copying page 1... D [08/Jan/2007:02:29:49 +0100] Discarding unused job-progress event... D [08/Jan/2007:02:29:49 +0100] [Job 2328] pagew = 571,0, pagel = 817,4 D [08/Jan/2007:02:29:49 +0100] [Job 2328] bboxw = 595, bboxl = 842 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageLeft = 12,0, PageRight = 583,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageTop = 829,4, PageBottom = 12,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageWidth = 595,0, PageLength = 842,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] Copying page 2... D [08/Jan/2007:02:29:49 +0100] Discarding unused job-progress event... D [08/Jan/2007:02:29:49 +0100] [Job 2328] pagew = 571,0, pagel = 817,4 D [08/Jan/2007:02:29:49 +0100] [Job 2328] bboxw = 595, bboxl = 842 D [08/Jan/2007:02:29:49 +0100] cupsdCloseClient: 9 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageLeft = 12,0, PageRight = 583,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageTop = 829,4, PageBottom = 12,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] PageWidth = 595,0, PageLength = 842,0 D [08/Jan/2007:02:29:49 +0100] [Job 2328] Wrote 2 pages... D [08/Jan/2007:02:29:49 +0100] PID 18609 (/usr/lib/cups/filter/pstops) exited with no errors. D [08/Jan/2007:02:29:59 +0100] cupsdAcceptClient: 9 from localhost (Domain) D [08/Jan/2007:02:29:59 +0100] cupsdCloseClient: 10 D [08/Jan/2007:02:29:59 +0100] cupsdReadClient: 9 POST / HTTP/1.1 D [08/Jan/2007:02:29:59 +0100] cupsdAuthorize: No authentication data provided. D [08/Jan/2007:02:29:59 +0100] Get-Jobs ipp://localhost/jobs D [08/Jan/2007:02:29:59 +0100] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [08/Jan/2007:02:29:59 +0100] cupsdAcceptClient: 10 from localhost (Domain) D [08/Jan/2007:02:29:59 +0100] cupsdCloseClient: 9 D [08/Jan/2007:02:29:59 +0100] cupsdReadClient: 10 POST / HTTP/1.1 D [08/Jan/2007:02:29:59 +0100] cupsdAuthorize: No authentication data provided. D [08/Jan/2007:02:29:59 +0100] Get-Jobs ipp://localhost/jobs D [08/Jan/2007:02:29:59 +0100] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok) D [08/Jan/2007:02:29:59 +0100] Discarding unused printer-state-changed event... D [08/Jan/2007:02:30:00 +0100] PID 18610 (/usr/lib/cups/backend/hp) exited with no errors. D [08/Jan/2007:02:30:00 +0100] [Job 2328] File 0 is complete. D [08/Jan/2007:02:30:00 +0100] Discarding unused printer-state-changed event... D [08/Jan/2007:02:30:00 +0100] Discarding unused job-completed event... D [08/Jan/2007:02:30:01 +0100] Unloading job 2328... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |matthias.andree@gmx.de ------- Comment #1 from jsmeix@novell.com 2007-01-08 02:50 MST ------- Please attach such a pdflatex generated PDF file so that I have a chance to reproduce it with my HP LaserJet 1220 (we don't have a LasetJet 1320). Furthermore check via lpoptions -p <queue-name> -l which settings the user which prints actually uses for the respective print queue. If possible try to enable PostScript error messages in your printer (see the printer's manual) so that it would print out a (hopefully) meaningful error message why it fails to print the particular PostScript. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 ------- Comment #2 from matthias.andree@gmx.de 2007-01-08 10:36 MST ------- Created an attachment (id=111864) --> (https://bugzilla.novell.com/attachment.cgi?id=111864&action=view) test fail that isn't printed, as asked in comment #1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 ------- Comment #3 from matthias.andree@gmx.de 2007-01-08 10:36 MST ------- Created an attachment (id=111865) --> (https://bugzilla.novell.com/attachment.cgi?id=111865&action=view) source file for .pdf, to be compiled with "pdflatex pdflatex-test.tex" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 matthias.andree@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|matthias.andree@gmx.de | ------- Comment #4 from matthias.andree@gmx.de 2007-01-08 10:39 MST ------- lpoptions output looks sane, A4 and Tray 2 are fine: XXXX@HHHHHH:~> lpoptions -l HPOption_Tray2/Tray 2: *True False HPOption_Tray3/Tray 3: True *False HPOption_PaperPolicy/Fit to Page: PromptUser NearestSizeAdjust *NearestSizeNoAdjust InstalledMemory/Total Printer Memory: *16_31MB 32_47MB 48_79MB 80_143MB 144MB HPwmSwitch/Watermark/Overlay: *Off Watermark Overlay HPwmPages/Watermark Pages: *AllPages FirstPage HPwmTextMessage/Watermark Text: *Draft CompanyConfidential CompanyProprietary CompanyPrivate Confidential Copy Copyright FileCopy Final ForInternalUse Preliminary Proof ReviewCopy Sample TopSecret Urgent Set HPwmFontName/Watermark Font: CourierB *HelveticaB TimesB HPwmFontSize/Watermark Size (points): pt24 pt30 pt36 pt42 *pt48 pt54 pt60 pt66 pt72 pt78 pt84 pt90 HPwmTextAngle/Watermark Angle: Deg90 Deg75 Deg60 *Deg45 Deg30 Deg15 Deg0 DegN15 DegN30 DegN45 DegN60 DegN75 DegN90 HPwmTextStyle/Watermark Style: Thin *Medium Thick Halo Fill HPwmBrightness/Watermark Intensity: Darkest Darker Dark MediumDark *Medium MediumLight Light Lighter Lightest Resolution/Printer Resolution: *1200x1200dpi 600x1200dpi 600x600dpi Smoothing/Resolution Enhancement: PrinterDefault On *Off HPEconoMode/HPEconoMode: PrinterDefault True *False PageSize/Media Size: Letter LetterSmall Executive Legal LegalSmall *A4 A4Small A5 A6 B6 ISOB5 B5 Postcard DoublePostcard w558h774 Env10 EnvMonarch EnvDL EnvC5 EnvISOB5 Custom PageRegion/PageRegion: Letter LetterSmall Executive Legal LegalSmall A4 A4Small A5 A6 B6 ISOB5 B5 Postcard DoublePostcard w558h774 Env10 EnvMonarch EnvDL EnvC5 EnvISOB5 MediaType/Media Type: Unspecified *Plain HPMultipurposePaper HPOfficePaper HPAllinOnePaper HPLJPaper HPPremChoiceLJPaper Preprinted Letterhead Transparency Prepunched Labels Bond Recycled Color Light75 Heavy91105 Cardstock105176 Envelope Rough InputSlot/Media Source: Tray1 *Tray2 Tray3 ManualFeed/Tray 1 (Manual): True *False Duplex/Duplex: None *DuplexNoTumble DuplexTumble -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #5 from jsmeix@novell.com 2007-01-18 03:34 MST ------- In comment #0 you wrote: ------------------------------------------------------------------------------ I can manually invoke cups's /usr/lib/cups/filter/pdftops filter or /usr/bin/pdftops and print the resulting .ps file of either command with lp without problem ------------------------------------------------------------------------------ and the error_log shows commas where there should be a decimal point ------------------------------------------------------------------------------ D ... [Job 2328] PageLeft = 12,0, PageRight = 583,0 ------------------------------------------------------------------------------ and both look exactly the same as described in bug #227205 in particular see https://bugzilla.novell.com/show_bug.cgi?id=227205#c4 *** This bug has been marked as a duplicate of bug 227205 *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232450 ------- Comment #6 from matthias.andree@gmx.de 2007-01-18 07:03 MST ------- If I understand that correctly, LC_ALL=C lp some.pdf should fix it. If it does, fine, if not, I'll re-test after the next CUPS online_update; if it's unfixed by then, I'll add my comments to #227205. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com