I'm not too sure that your arguments are quite right (and I'm not too sure how to correct them, either) but perhaps I can suggest that you try
a2ps?
The only configuration file you need to fiddle with for
a2sp is
/etc/a2ps-site.cfg; you'll want to define, at the top of the file,
Code:
#################################################################
# 1) System dependent parameters #
#################################################################
# Default encoding
Options: --encoding=latin1
# Default medium
# Options: --medium=letter
Options: --medium=letterdj
This is because Deskjets need a slightly larger margin than plain Letter. In the corresponding file,
/etc/a2ps.cfg, the settings for Letter and Letterdj are
Code:
# Medium: name, width height [llx lly urx ury]
Medium: Letter 612 792
Medium: Letterdj 612 792 24 40 588 752
Those extra numbers on the Letterdj line are what makes things work properly. It might also be useful to note the width and height values.
It's also a Real Good Idea to configure
HPLIP (if you have it, get it from you distribution software library or from Hewlett-Packard if you don't).
HPLIP will create correct entries for your printer for use with
lp,
a2ps, and
CUPS. Hewlett-Packard provides complete "drivers" for all the printers they make (well, pretty much) and if you set up
HPLIP and
CUPS your life will be much, much easier when you're printing with
lp or
a2ps or any applications you use.
Hope this helps some.