Re: GHOSTSCRIPT -> HLLIP -> HP OfficeJet Pro 8600
[email protected] (Perry Hutchison) Fri, 15 Jun 2018 16:39:20 -0700
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <5b244e28.Ufmrj+gvYxE3wNX7%[email protected]> |
Homer Wilson Smith <[email protected]> wrote: > I am plotting using gnuplot which puts out postscript > which will not print on an HP86xx printer. > > I am trying to get ghostscript to work with hplip to put > out the proper format, and having LOT of difficulty. > > Here is the code that HP tells me to use ... > > #!/bin/bash > > gs \ > -sDEVICE=ijs -sIjsServer=hpijs -dIjsUseOutputFD \ > -dIjsUseOutputFD \ > -sDeviceManufacturer="HP" \ > -sDeviceModel="Office Jet Pro 8600" \ > /tmp/data.print This is what I am using (with gs 8.71) to write to a different type of printer that also uses the HP printer language. It's connected via Berkeley lpr (not CUPS, with which I have not had much success). YMMV. #!/usr/local/bin/bash gs -sDEVICE=pxlmono \ '-sOutputFile=|lpr' -dNOPAUSE -dBATCH -dSAFER \ /usr/local/share/ghostscript/m2835dw-setup.ps "$@" The m2835dw-setup.ps file contains: % Entries from the PPD file % Letter size <</PageSize [612 792] /ImagingBBox null>> setpagedevice % Legal size % <</PageSize [612 1008] /ImagingBBox null>> setpagedevice % Fix vertical position % This moves the image up 0.125" <</Margins [0 -36 ] >> setpagedevice (Note that lines beginning with % are ignored by gs because they are PostScript comments.) For comparison, this is what I use to send plain text files to the same printer -- it handles them directly, but needs DOS line endings. #!/usr/local/bin/bash sed -e 's/$/^M/' "$@" | lpr (That ^M is actually a \015 character.)