Description of problem: I get a pdf bill from my telco, and if I print it via lp, or lpr, or xpdf or acroread, a lot of the contents disappears. Okular does seem to print it alright. Details. I have an HP M402dn printer. The PPD file is *PCFileName: "PDF.PPD" *Manufacturer: "Generic" *Product: "(Generic PDF Printer)" *cupsVersion: 1.0 which has the two filters: *cupsFilter: "application/vnd.cups-pdf 0 -" *cupsFilter2: "application/pdf application/vnd.cups-pdf 0 pdftopdf" The file is called p1 ( a pdf file). If I print it via lp I get the image in attachment 1 [details]. Note the empty space. In /var/log/cups/error_log I get ... D [17/Oct/2020:20:39:15 -0700] [Job 641] 2 filters for job: D [17/Oct/2020:20:39:15 -0700] [Job 641] pdftopdf (application/pdf to printer/hpd1/application/vnd.cups-pdf, cost 0) D [17/Oct/2020:20:39:15 -0700] [Job 641] - (printer/hpd1/application/vnd.cups-pdf to printer/hpd1, cost 0) ... I [17/Oct/2020:20:39:15 -0700] [Job 641] Started filter /usr/lib/cups/filter/pdftopdf (PID 7720) I [17/Oct/2020:20:39:15 -0700] [Job 641] Started backend /usr/lib/cups/backend/hp (PID 7721) D [17/Oct/2020:20:39:15 -0700] [Job 641] pdftopdf: Last filter determined by the PPD: pdftopdf; FINAL_CONTENT_TYPE: application/vnd.cups-pdf => pdftopdf will log pages in page_log. D [17/Oct/2020:20:39:15 -0700] [Job 641] PDF interactive form and annotation flattening done via QPDF But the print job is bad in that lots of data does not show up. If I open the file with okular, I get the full output (see attachment 2 [details], where I have crossed out personal information, but the correct text was there on the page) In error_log I get ...... D [17/Oct/2020:20:48:22 -0700] [Job 642] Request file type is application/postscript. I [17/Oct/2020:20:48:22 -0700] [Job 642] File of type application/postscript queued by "root". .... D [17/Oct/2020:20:48:22 -0700] [Job 642] gstopdf (application/postscript to application/pdf, cost 0) D [17/Oct/2020:20:48:22 -0700] [Job 642] pdftopdf (application/pdf to printer/hpd1/application/vnd.cups-pdf, cost 0) D [17/Oct/2020:20:48:22 -0700] [Job 642] - (printer/hpd1/application/vnd.cups-pdf to printer/hpd1, cost 0) ... D [17/Oct/2020:20:48:22 -0700] [Job 642] envp[22]="CONTENT_TYPE=application/postscript" ... D [17/Oct/2020:20:48:22 -0700] [Job 642] envp[34]=\"_=/usr/lib/cups/filter/gstoraster\" D [17/Oct/2020:20:48:23 -0700] [Job 642] PID 9319 (/usr/lib/cups/filter/gstopdf) exited with no errors. ... D [17/Oct/2020:20:48:23 -0700] [Job 642] PID 9320 (/usr/lib/cups/filter/pdftopdf) exited with no errors. ... xpdf As root it prints out just as okular. as root ... D [17/Oct/2020:20:57:16 -0700] [Job 643] gstopdf (application/postscript to application/pdf, cost 0) D [17/Oct/2020:20:57:16 -0700] [Job 643] pdftopdf (application/pdf to printer/hpd1/application/vnd.cups-pdf, cost 0) D [17/Oct/2020:20:57:16 -0700] [Job 643] - (printer/hpd1/application/vnd.cups-pdf to printer/hpd1, cost 0) ... I [17/Oct/2020:20:57:16 -0700] [Job 643] Started filter /usr/lib/cups/filter/gstopdf (PID 10708) I [17/Oct/2020:20:57:16 -0700] [Job 643] Started filter /usr/lib/cups/filter/pdftopdf (PID 10709) I [17/Oct/2020:20:57:16 -0700] [Job 643] Started backend /usr/lib/cups/backend/hp (PID 10710) D [17/Oct/2020:20:57:16 -0700] [Job 643] gstopdf argv[6] = 643 root p1 1 media=Letter sides=two-sided-long-edge job-uuid=urn:uuid:4e823d5d-1bf7-3b98-5489-cd4ed26ec031 fitplot job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1602993436 time-at-processing=1602993436 document-name-supplied=4LGRlp Duplex=DuplexNoTumble PageSize=Letter /var/spool/cups/d00643-001 D [17/Oct/2020:20:57:16 -0700] [Job 643] PPD: /etc/cups/ppd/hpd1.ppd D [17/Oct/2020:20:57:16 -0700] [Job 643] OUTFORMAT=\"PDF\", so output format will be PDF D [17/Oct/2020:20:57:16 -0700] [Job 643] pdftopdf: Last filter determined by the PPD: pdftopdf; FINAL_CONTENT_TYPE: application/vnd.cups-pdf => pdftopdf will log pages in page_log. ... D [17/Oct/2020:20:57:16 -0700] [Job 643] Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files D [17/Oct/2020:20:57:16 -0700] [Job 643] Failed to get find device cups-hpd1 D [17/Oct/2020:20:57:16 -0700] [Job 643] Calling FindDeviceById(cups-hpd1) D [17/Oct/2020:20:57:16 -0700] [Job 643] Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files D [17/Oct/2020:20:57:16 -0700] [Job 643] Failed to get device cups-hpd1 D [17/Oct/2020:20:57:16 -0700] [Job 643] Color Manager: no profiles specified in PPD D [17/Oct/2020:20:57:16 -0700] [Job 643] Set job-printer-state-message to "Color Manager: no profiles specified in PPD", current level=INFO D [17/Oct/2020:20:57:16 -0700] [Job 643] Color Manager: ICC Profile: None D [17/Oct/2020:20:57:16 -0700] [Job 643] Ghostscript using Any-Part-of-Pixel method to fill paths. D [17/Oct/2020:20:57:16 -0700] [Job 643] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false -dNOPLATFONTS -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/printer -dColorConversionStrategy=/LeaveColorUnchanged -r600x600 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -I/usr/share/cups/fonts -c \'<</.HWMargins[18.000000 18.000000 18.000000 18.000000] /Margins[0 0]>>setpagedevice\' -f -_ ... D [17/Oct/2020:20:57:16 -0700] [Job 643] envp[34]=\"_=/usr/lib/cups/filter/gstoraster\" D [17/Oct/2020:20:57:16 -0700] [Job 643] PID 10708 (/usr/lib/cups/filter/gstopdf) exited with no errors. ... D [17/Oct/2020:20:57:16 -0700] [Job 643] PID 10709 (/usr/lib/cups/filter/pdftopdf) exited with no errors. D [17/Oct/2020:20:57:24 -0700] [Job 643] ready to print That file p1 is the first page of the full 6 page file. If I try to print the full 6 page with xpdf, whether as user or root, gs crashes. D [17/Oct/2020:21:13:20 -0700] [Job 647] envp[34]=\"_=/usr/lib/cups/filter/gstoraster\" D [17/Oct/2020:21:13:20 -0700] [Job 647] Error: /undefined in ImData_44_0 D [17/Oct/2020:21:13:20 -0700] [Job 647] Operand stack: D [17/Oct/2020:21:13:20 -0700] [Job 647] true false 96 2752 1344 160 D [17/Oct/2020:21:13:20 -0700] [Job 647] Execution stack: D [17/Oct/2020:21:13:20 -0700] [Job 647] %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1992 2 3 %oparray_pop 1991 2 3 %oparray_pop 1979 2 3 %oparray_pop 1833 2 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- rectfill (gx_device_pdf) (gs_pattern1_instance_t) (NULL) 6 %pattern_paint_finish --nostringval-- D [17/Oct/2020:21:13:20 -0700] [Job 647] Dictionary stack: D [17/Oct/2020:21:13:20 -0700] [Job 647] --dict:735/1123(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- --dict:67/75(L)-- --dict:735/1123(ro)(G)-- --dict:67/75(L)-- --dict:18/25(L)-- --dict:9/15(L)-- --dict:9/15(L)-- --dict:0/15(L)-- D [17/Oct/2020:21:13:20 -0700] [Job 647] Current allocation mode is local D [17/Oct/2020:21:13:20 -0700] [Job 647] GPL Ghostscript 9.27: Unrecoverable error, exit code 1
Created attachment 11949 [details] output running "lp filename"
Created attachment 11950 [details] output printing filename from okular
Hi, thanks for reporting this bug. According to: https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index Model Name:HP LaserJet Pro m402n Min. HPLIP Version: 3.15.11 Chrome OS Support: Yes Driver Plug-in8: No Support Level9 : Full Print Mode: Mono Scan to PC3: No PC Send Fax5: No Connectivity: USB,Network HP LaserJet Pro m402d Support is same but is USB only. We have hplip-3.19.5-1.mga7 in core/repos and also hplip-3.20.6-1.mga7 from updates_testing. Please try again install your printer with hplip which has better support than ghostscript.
Keywords: (none) => TriagedCC: (none) => ouaurelien
According to reporter on Bugs 27452, this occurs when user wants to print pdf file to a printer. Seems to send a Post Script file instead to printer. I make this bug depend on 27542. Meanwhile, this bug has to be tested when updates come from Bugs 27542. Not closing this. Assigning to all packagers, xpdf has no registered maintainer. CC'd recent commiters. (Please set the status to 'assigned' if you are working on it)
Source RPM: cups-2.2.13-1.4.mga7 ,xpdf-4.02-1.2.mga7, ?? => xpdf-4.02-1.2.mga7CC: ouaurelien => joequant, nicolas.salgueroAssignee: bugsquad => pkg-bugsDepends on: (none) => 27452
On Mageia 8 I have tried to reinstall the printer. a) I choose the HPLIP option in system-config-printer, but it seems not to be able to find the ppd file, and instead chooses the ps printer from foomatic. I have similar problems. b) with both the generic pdf printer *FormatVersion: "4.3" *FileVersion: "1.1" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "PDF.PPD" *Manufacturer: "Generic" *Product: "(Generic PDF Printer)" *cupsVersion: 1.0 *cupsManualCopies: True *cupsModelNumber: 2 *ModelName: "Generic PDF Printer" *ShortNickName: "Generic PDF Printer" *NickName: "Generic PDF Printer" and with the suggested ppd file *FormatVersion: "4.3" *FileVersion: "19.3600" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "HPP00167.PPD" *Product: "(HP LaserJet M406)" *Product: "(LaserJet M406)" *Manufacturer: "HP" *ModelName: "HP LaserJet M406" *ShortNickName: "HP LaserJet M406" *1284DeviceID: "MFG:Hewlett-Packard;MDL:hp_laserjet_m406;" *NickName: "HP LaserJet M406 Postscript (recommended)" *PSVersion: "(3010.107) 3" I still get a mess. The latest is a file of music which prints the page as a 2cmx2cm landscape picture on the bottom left of the page. This is, as one could expect, unreadable. This happens with both ppd files mentioned above. c) If I print it via okular, (ie open the file with okular, and select print) I get a reasonable (ie page filling) printout. It also prints the Telus Bill mentioned in the original complaint complete, without most of the page not printed. I will upload a page of this file, which prints under okular and xpdf OK using both ppd files, but under just lpr d.pdf it creates that tiny file
Created attachment 12803 [details] pdf file which prints tiny page on LaserJet Pro M402dw File which prints 2cm/2cm image under lp but prints full page under xpdf and okular. to HP Laserjet Pro M402dw with both Generic PDF ppd file directed to hplip, and to foomatic postscirpt file for HP LawerjetPro M406 (recommended)
Mageia 7 is EOL since July 1st 2021. There will not have any further bugfix for this release. You are encouraged to upgrade to Mageia 8 as soon as possible. @reporter, if this bug still apply with Mageia 8, please let us know it. @packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead. This bug report will be closed OLD if there is no further notice within 1st September 2021.
Still has problems on Mageia 8. Okular seems to print OK. xpdf, whatever chrome or chromium use to print pdf do not work properly. All display properly on the screen, but do not print properly.
Version: 7 => 8