I've encountered the same problem on Gentoo[1] with an Officejet 5610. Using the old hpijs (foomatic) PPD works fine, but the new hpcups PPD has broken margins. I will paste the important differences in the PPDs:
# hplip-3.9.4b-r1: CustomMedia "A4/A4 210x297mm" 595.00 842.00 10.00 36.00 10.00 9.00 HWMargins 18.00 36.00 18.00 36.00
# hplip-3.9.8-r2: CustomMedia "A4/A4 210x297mm" 595.44 841.68 18.00 36.00 18.00 9.00 HWMargins 9.00 36.00 9.00 36.00
# hplip-3.9.8-r2 *FIXED*: CustomMedia "A4/A4 210x297mm" 595.44 841.68 9.00 36.00 9.00 36.00 HWMargins 9.00 36.00 9.00 36.00
The fixed one works fine. For more information see comment 7 at [1].
[1] http://bugs.gentoo.org/show_bug.cgi?id=288751
I've encountered the same problem on Gentoo[1] with an Officejet 5610.
Using the old hpijs (foomatic) PPD works fine, but the new hpcups PPD has broken margins. I will paste the important differences in the PPDs:
# hplip-3.9.4b-r1:
CustomMedia "A4/A4 210x297mm" 595.00 842.00 10.00 36.00 10.00 9.00
HWMargins 18.00 36.00 18.00 36.00
# hplip-3.9.8-r2:
CustomMedia "A4/A4 210x297mm" 595.44 841.68 18.00 36.00 18.00 9.00
HWMargins 9.00 36.00 9.00 36.00
# hplip-3.9.8-r2 *FIXED*:
CustomMedia "A4/A4 210x297mm" 595.44 841.68 9.00 36.00 9.00 36.00
HWMargins 9.00 36.00 9.00 36.00
The fixed one works fine. For more information see comment 7 at [1].
[1] http:// bugs.gentoo. org/show_ bug.cgi? id=288751