[email protected] wrote: >> Is it possible to print and scan on an older hp network printer without >> hplip/dbus? It supports LPR/PS but I have never been able to get it to >> work properly (ie: with the extra paper trays, duplexer, dpi settings >> etc) are there any good guides for this? > > You use setpagedevice. > > PostScript language reference manual > Adobe Systems Incorporated. 3rd ed. > CHAPTER 6 Device Control > > Example > << /Duplex true /PageSize [612 792] /Collate false >> > setpagedevice
And to add to that, try and get hold of the PPD file for the printer - it will have within it (though not exactly designed for humans to read, it's designed to be parsed to configure the print dialogs) all the commands to invoke printer settings/functions - note in particular the section on UIConstraints which tells you which options are not compatible (eg you can't print A6 from Tray3) Excerpts from the PPD file for the LJ1320n : Select A4 <</PageSize [595 842] /ImagingBBox null>> setpagedevice Select Tray 2: "<</ManualFeed false /MediaPosition 0>> setpagedevice Select ManualFeed <</ManualFeed true>> setpagedevice Select duplex (double sided) <</Duplex true /Tumble false>> setpagedevice And so on. Compare with the line Karl gave, you can combine multiple settings in one go, eg A4, Duplex, tray 2 : <</PageSize [595 842] /ImagingBBox null /ManualFeed false /MediaPosition 0 /Duplex true /Tumble false >> setpagedevice PostScript is a rather nice language to learn. It's designed to be human writeable (human readable when it's machine generated is another matter) and fully device independent. And it's stack based - uses RPN which I quite like. _______________________________________________ Dng mailing list [email protected] https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
