Bug 693088 - hp-deskjet-2050_j510_series crops A4 documents
Summary: hp-deskjet-2050_j510_series crops A4 documents
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 14
Hardware: i386
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-02 13:52 UTC by Uno Engborg
Modified: 2011-05-31 14:39 UTC (History)
2 users (show)

Fixed In Version: hplip-3.11.5-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-31 14:39:15 UTC
Type: ---


Attachments (Terms of Use)
troubleshoot.txt from hplip-3.11.1-3.fc14.i686 (161.18 KB, text/plain)
2011-04-04 20:35 UTC, Uno Engborg
no flags Details
My non working /etc/cups/ppd/HP-Deskjet-2050-J510-series.ppd file (14.53 KB, application/vnd.cups-ppd)
2011-04-06 15:50 UTC, Uno Engborg
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 748303 0 None None None Never

Description Uno Engborg 2011-04-02 13:52:42 UTC
Description of problem:

hp-deskjet-2050_j510_series crops A4 documents


Version-Release number of selected component (if applicable):

hplip-3.11.1-3.fc14.i686, 
as far as I can tell, it also applies to the production version


How reproducible:
Always


Steps to Reproduce:
1. Install the test version of hplip i.e hplip-3.11.1-3.fc14.i686 
2. Connect the printer, and alter printer settings to A4
3. Print a test page from the printer setup
  
Actual results:
The page is cropped to about letter size, i.e missing approximately 20 m.m. at the bottom of the page. If the printing was done in landscape mode the print is cropped the same amount at the left side of the landscape print.

Expected results:

A full A4 test page page where the testpage border is visible close to the edge of the page on all 4 sides of the printed page.


Additional info:

I have tried to change the PPD file but I'm not sure what the correct values should be. If I grep the PPD for A4 I have the following A4 related settings:

*PageSize A4/A4 210x297mm: "<</PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
*PageRegion A4/A4 210x297mm: "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"
*ImageableArea A4/A4 210x297mm: "9.00 41.04 586.44 837.36"
*PaperDimension A4/A4 210x297mm: "595.44 841.68"

Comment 1 Uno Engborg 2011-04-03 19:56:33 UTC
I forgot to mention that the ppd used was the hp-deskjet_2050_j510_series.ppd.

Using the hp-deskjet_2050_j510_series-hpijs.ppd instead gives better result, but there is still a about a millimeter missing, and on Fedora this whould require the hplip packages to be recompiled using the configure --enable-foomatic-rip-hplip-install flag.

Comment 2 Tim Waugh 2011-04-04 11:21:47 UTC
Please run the printing troubleshooter:

https://fedoraproject.org/wiki/Printing/Debugging#Printing_troubleshooter

and attach the troubleshoot.txt file you end up with.

Comment 3 Uno Engborg 2011-04-04 20:35:34 UTC
Created attachment 489854 [details]
troubleshoot.txt from hplip-3.11.1-3.fc14.i686

This resulted in a testpage, with about "letter" size even though A4 was chosen, leaving the bottom of the page blank.

Comment 4 Tim Waugh 2011-04-05 08:22:08 UTC
Letter size is much shorter than that.  You should see this on the test page:

Media Limits: 0.12 x 0.57 to 8.15 x 11.63 inches
              3 x 14 to 207 x 295 millimeters

i.e. the lower-left boundary is 3mm in from the side and 14mm from the bottom edge.  This is because the hpcups PPD says that the hardware limit is 41.04 points (72 points make an inch) from the bottom edge:

*HWMargins: 9 41.040000915527 9 4.320000171661

If this is incorrect you could try adjusting the '41.04' value there and in the ImageableArea A4 setting to see how low it can safely be set.  You may need to restart cups after modifying the PPD.

For reference, the hpijs PPD has '36' for that value.

Comment 6 Uno Engborg 2011-04-05 20:13:54 UTC
It doesn't seam to matter what value I for the HWMargin use. The result is the same. I'm starting to wonder if I'm editing the right file.

I have tried to edit /usr/share/cups/drv/hp/hpcups.drv line 7412, but I'm not sur how to change ImagebleArea as there, as far as I can see, are no examples on how to do that.

Comment 7 Tim Waugh 2011-04-06 08:43:17 UTC
Edit the PPD in /etc/cups/ppd/, but change *both* the HWMargins *and* the ImageableArea values, and restart cups afterwards.

Comment 8 Uno Engborg 2011-04-06 15:43:49 UTC
(In reply to comment #7)
> Edit the PPD in /etc/cups/ppd/, but change *both* the HWMargins *and* the
> ImageableArea values, and restart cups afterwards.


Done that, and it still doesn't matter what values I set. The cropping remains the same regardless what value I use.

Comment 9 Uno Engborg 2011-04-06 15:50:54 UTC
Created attachment 490329 [details]
My non working  /etc/cups/ppd/HP-Deskjet-2050-J510-series.ppd file

Comment 10 Uno Engborg 2011-04-13 19:48:35 UTC
The following edit seams to do the trick:

- *PageSize A4/A4 210x297mm: "<</PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"

+ *PageSize A4/A4 210x297mm: "<</cupsInteger0 26/PageSize[595.44 841.68]/ImagingBBox null>>setpagedevice"


Suggested by Ani Balakrishnan on the HPLIP issuetracker
https://bugs.launchpad.net/hplip/+bug/748303

Comment 11 Tim Waugh 2011-05-26 13:56:57 UTC
As this fix was included in HPLIP 3.11.5, I think this test update package should fix the problem:
  https://admin.fedoraproject.org/updates/hplip-3.11.5-1.fc14

Would you mind giving it a go?

yum --enablerepo=updates-testing update 'hplip*' 'hpijs*' 'libsane-hp*'

Create a new queue and see if the problem is now fixed.

Thanks in advance...


Note You need to log in before you can comment on or make changes to this bug.