Bug 118467 - Libreoffice Modifies pagesize (A4->A4.Duplex) when printing with hpcups driver
Summary: Libreoffice Modifies pagesize (A4->A4.Duplex) when printing with hpcups driver
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Printer-Settings
  Show dependency treegraph
 
Reported: 2018-06-30 07:23 UTC by rkeller
Modified: 2023-11-15 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The PPD file for the printer (29.85 KB, text/plain)
2018-06-30 07:27 UTC, rkeller
Details
/var/log/cups/error_log when printing fails (85.26 KB, text/plain)
2018-06-30 07:28 UTC, rkeller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkeller 2018-06-30 07:23:40 UTC
Description:
Hi,

Since hpijs was dropped in favour of hpcups, I have a problem when printing. 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.

Note: this is NOT a hardware problem. I can print PDF's with very low margins (under 1,5 cm). And I can print without problems my A4 pages with Abiword. The problem only happens when I print with Libreoffice (or Openoffice).

Now: after a lot of searches I found out, watching at the cups logs (in debugging mode) that the problem could come from the fact that Libreoffice, when printing my A4 pages, seems to change the page format to A4.Duplex (though Duplex mode is disabled in the cups configuration for the printer). Indeed, I've read (here: https://bugs.launchpad.net/hplip/+bug/1352316) that page margin rules are different than standard rules for Duplex printing. Now: in the PPD file for the printer, I tried to delete all the A4.Duplex lines, and that "solves" the problem.

In the cups logs (/var/log/cups/error_log), here are some relevant lines when the problem happens:
[...]
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 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 wrong PageSize and the reduced HWMargin.

Steps to Reproduce:
1. Have a A4 page ready to print
2. Print the page

Actual Results:
Cups prints the A4 page with A4.Duplex pagesize and the upper page text (within 1,5 cm margin) isn't printed.

Expected Results:
Cups should print a normal A4 page including the upper page text (within 1,5 cm margin).


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Comment 1 rkeller 2018-06-30 07:27:06 UTC
Created attachment 143218 [details]
The PPD file for the printer
Comment 2 rkeller 2018-06-30 07:28:12 UTC
Created attachment 143219 [details]
/var/log/cups/error_log when printing fails
Comment 3 rkeller 2018-06-30 07:54:58 UTC
Some additional informations which I forgot.

1) My system runs under Archlinux (but I doubt this is OS specific).
2) If I print with a "Letter" format, the printing happens normally ("Letter" is not changed into "Letter.Duplex"). The problem only happens with A4. Maybee other formats also.
Comment 4 Buovjaga 2018-07-13 19:53:15 UTC
The investigation seems thorough enough that I will just set to NEW.
Comment 5 QA Administrators 2021-11-14 04:00:30 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-11-15 03:12:01 UTC
Dear rkeller,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug