Printed image is not center-aligned for smaller paper-sizes on Laserjet 1100

Bug #1981151 reported by Peter Sági
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

LaserJet 1100 has a paper guide that guides the paper to the center of the printing engine horizontally. The hpcups.drv PPD compiler input file does not seem to respect this speciality of the LaserJet 1100 which results in left-aligned image (wrt. the printable area of the engine) and thus part (or whole) of the image is printed off-paper (since the small paper is center-aligned wrt. the engine).
The used driver:
ii printer-driver-hpcups 3.18.12+dfsg0-2 amd64 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
Also checked in the upstream/latest branch on salsa.debian.org: https://salsa.debian.org/printing-team/hplip/-/blob/ab0ec267802e69a46a52e78c85d8f90dc241f7d0/prnt/drv/hpcups.drv.in

I am fixing this issue via creating a LaserJet 1100-specific entry in hpcups.drv (checking the toolchain that generates this file) and using the cupsInteger1 attribute for the setpagedevice command in paper size specifications (or elsewhere if can be done genericly). Since the code in prnt/hpcups/Encapsulator.cpp: Encapsulator::sendJobHeader() doing centering the printed image (if the printable area size is specified in cupsInteger1) also has a bug I am fixing that too via moving the cursor positioning PCL command (*p#X) before the Start Raster Graphics command (*r1A) since it has no effect if issued after the Start Raster Graphics.
I am willing to contribute the fix to upstream.
If there is a description about how to contribute (where is the upstream VCS, what is the process to be followed, etc.), please send me a link.

Revision history for this message
Peter Sági (psagi) wrote :
Revision history for this message
Peter Sági (psagi) wrote :

Patch against https://sourceforge.net/projects/hplip/files/hplip/3.22.6/hplip-3.22.6.tar.gz/download that fixes the issue.
(No regression test made w/ other printer models, since I have no access to them.)

Revision history for this message
Peter Sági (psagi) wrote :

Refined patch, that allows the CUPS test page to be printed correctly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.