You are not logged in.

#1 2018-06-28 12:33:22

kero
Member
Registered: 2012-08-26
Posts: 57

Libreoffice printing problem with hpcups (A4 pages)

Hi, everybody.

I have a problem when printing with Libreoffice and my HP Officejet 6700 Premium printer, since hpijs was dropped in favour of hpcups.

The basic problem is: when I print an A4 page from Libreoffice on my HP Officejet 6700 Premium printer (with cups and the hpcups driver for my printer model), AND I have an upper page margin which is set to less than 1,5 cm, everything which is beyond this margin isn't printed.

I struggle with this since days. I can't figure out what the problem exactly is, but I did a lot of observation (some of which I probably forget here). Here are some important points:
1) It is not a hardware issue: when I print test pages, or PDF's, I perfectly can print beyond that margin.
2) The issue isn't reproduced if I print via Abiword but is reproduced if I print via Openoffice instead of Libreoffice.
3) If, with Libreoffice, I print on the same printer, but using a printer configuration with hpcups driver for HP Officejet 6600, the problem disappears.

Now, I've been activating the cups debugging traces and I could find interesting thins in /var/log/cups/error_log. I suppose it could give indications about the problem but I don't know how to go further. I only reproduce here the log parts which looks promising in order to solve the problem. If more logs is necessary, I can provide.

Here are two parts of /var/log/cups/error_log after a failed printing:

D [28/Jun/2018:12:50:44 +0200] [Job 3155] 3 filters for job:
D [28/Jun/2018:12:50:44 +0200] [Job 3155] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [28/Jun/2018:12:50:44 +0200] [Job 3155] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [28/Jun/2018:12:50:44 +0200] [Job 3155] hpcups (application/vnd.cups-raster to printer/HP_Officejet_6700, cost 0)
D [28/Jun/2018:12:50:44 +0200] [Job 3155] job-sheets=none,none
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[0]="HP_Officejet_6700"
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[1]="3155"
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[2]="keikoz"
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[3]="PlanningTravail.odt"
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[4]="1"
D [28/Jun/2018:12:50:44 +0200] [Job 3155] argv[5]="Duplex=None InputSlot=Tray1 PageSize=A4.Duplex job-uuid=urn:uuid:85bae156-3acd-3fd7-6141-240a734334ad job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1530183044 time-at-processing=1530183044 document-name-supplied=DS9pHR"

D [28/Jun/2018:12:50:44 +0200] [Job 3155] Ghostscript using Any-Part-of-Pixel method to fill paths.
D [28/Jun/2018:12:50:44 +0200] [Job 3155] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=1 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=26 -scupsPageSizeName=A4.Duplex -I/usr/share/cups/fonts -c \'<</.HWMargins[9.360000 33.192001 9.359985 42.552002] /Margins[0 0]>>setpagedevice\' -f -_

Please note the grassed text. I don't understand why the papersize is set at A4.Duplex, since duplex isn't activated in cups configuration. Also note that there is here a page margin which looks as being part of the problem (I don't know of it is related to A4.Duplex or not), as will appear more clearly from further logs (infra...).

Now, the cups log looks different (and more coherent) when I print EITHER with Abiword EITHER with Libreoffice + hpcups for Officejet 6600 (instead of 6700). In both of this cases, the printing is done correctly. Here how the log looks:

D [28/Jun/2018:13:11:19 +0200] [Job 3158] 3 filters for job:
D [28/Jun/2018:13:11:19 +0200] [Job 3158] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [28/Jun/2018:13:11:19 +0200] [Job 3158] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [28/Jun/2018:13:11:19 +0200] [Job 3158] hpcups (application/vnd.cups-raster to printer/HP_Officejet_6700, cost 0)
D [28/Jun/2018:13:11:19 +0200] [Job 3158] job-sheets=none,none
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[0]="HP_Officejet_6700"
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[1]="3158"
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[2]="keikoz"
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[3]="abiword, tâche n°2"
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[4]="1"
D [28/Jun/2018:13:11:19 +0200] [Job 3158] argv[5]="InputSlot=Tray1 number-up=1 MediaType=Plain PageSize=A4 noCollate OutputMode=Normal ColorModel=RGB Duplex=None job-uuid=urn:uuid:ef77a143-a9ee-3f6e-4fdf-9d60704df776 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1530184279 time-at-processing=1530184279"

D [28/Jun/2018:13:11:19 +0200] [Job 3158] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=1 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=26 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c \'<</.HWMargins[9.360000 9.360000 9.359985 9.359985] /Margins[0 0]>>setpagedevice\' -f -_

In this log, the page format looks correct and the margin looks littler.

A last note: if I use Libreoffice + hpcups for Officejet 6700 (which is the problematic configuration) but I configure my page as "Letter" instead of "A4", the printing happens correctly, and in the logs, the margins (HWMargin) are the same as in the last log. Also, in this case, there is no more the ".Duplex" addition that I had with A4 pages. Here is a shorter extract in this case:

D [28/Jun/2018:13:21:10 +0200] [Job 3162] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=1 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=2 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c \'<</.HWMargins[9.360000 9.360000 9.359985 9.359985] /Margins[0 0]>>setpagedevice\' -f -_

So, to resume, it looks like there is a problem with the interaction between Libreoffice/(Openoffice) and the hpcups driver for Officejet 6700, but only with some page formats (A4 for sure, but I don't know for other formats). But I don't understand where the problem comes from).

So now if somebody was kind enough to read this whole paper, maybee he also has some idea to help ? smile

Thank you.

Last edited by kero (2018-06-28 12:35:03)

Offline

#2 2018-06-30 07:53:01

kero
Member
Registered: 2012-08-26
Posts: 57

Re: Libreoffice printing problem with hpcups (A4 pages)

Ok, so further exploration let me think that there is a bug. For some unknown reason, Libreoffice changes the pagesize from A4 to A4.Duplex. I filled a bugreport here: https://bugs.documentfoundation.org/sho … ?id=118467

Let's see.

Offline

Board footer

Powered by FluxBB