SUMMARY: ghostscript print filter for postscript on deskjet]

Roger D McGraw, Jr., E.I.T. (roger@ptac.com)
Tue, 24 Mar 1998 15:51:20 -0600

This is a multi-part message in MIME format.

--Boundary_(ID_uzFljTN7gEQxITLSIUWDPg)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

Hello all,
Just noticed that the subject had a spelling error which made this not
come up
when you search for ghostscript, so I am resending...

-- 
                                 Roger McGraw
 _______________________________________________________
|        _|_|_|   _|_|_|_|_|    _|_|     _|_|_|         |
|        _|   _|      _|       _|  _|   _|              |
|        _|_|_|       _|      _|_|_|_|  _|              |
|        _|           _|      _|    _|  _|              |
|        _|           _|      _|    _|   _|_|_|         |
|       Precast Technical Assistance Corporation        |
|_______________________________________________________|
|  PTAC Consulting Engineers |  Roger McGraw, Jr., EIT  |
|  124 E Wright St. Suite C  |  Tel.: (850) 432-8446    |
|  Pensacola, Fl 32501       |  Fax.: (850) 432-9875    |
|                            |  EMail: roger@ptac.com   |
|_______________________________________________________|

--Boundary_(ID_uzFljTN7gEQxITLSIUWDPg) Content-type: MESSAGE/RFC822

Date: Mon, 16 Feb 1998 07:35:10 -0600 From: Roger D McGraw <roger@ptac.com> Subject: SUMMARY: gfhostscript print filter for postscript on deskjet To: sun-managers@ra.mcs.anl.gov Message-id: <34E8408E.B5ACEB63@ptac.com> MIME-version: 1.0 X-Mailer: Mozilla 4.04 [en] (X11; I; SunOS 5.5.1 sun4u) Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_v71GJfBaUNuqx+7teSVvgw)" References: <199802132011.OAA13465@bear.ptac.com>

--Boundary_(ID_v71GJfBaUNuqx+7teSVvgw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit

I started by installing the precompiled version of ghostscript from ftp://opcom.sun.ca/pub/freeware/ghostscript-4.03.gz and installed it using pkgadd. I actually received nothing but me too's on this posting but I have solved the problem. I think what I had done was mostly correct, but even though I could run ghostscript, that did not mean the lp daemon could. The problem was that lp needed to have some environment variables set. so now here is what I did: I created /etc/lp/fd/jet.fd:

Input types: postscript Output types: PCL Printer types: any Printers: any Filter type: slow Command: /etc/lp/fd/print and set its permissions. Then I created /etc/lp/fd/print: #!/bin/csh setenv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/opt/ARRIS604/lib setenv GS_FONTPATH /usr/openwin/lib/X11/fonts/Type1/outline setenv GS_LIB /usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type3 /opt/AEgs/bin/gs -q -sDEVICE=cdj550 -dBitsPerPixel=32 -dNOPAUSE -sOutputFile=- - then I did /usr/sbin/lpfilter -f jet -F /etc/lp/fd/jet.fd then I did /usr/sbin/lpadmin -pdeskjet -v /dev/bpp0 -I PCL

to print from netscape I simply issue the command lp -d deskjet Everything seems to work fine. The -sDEVICE=cdj550 is for color deskjets, I think for B&W use -sDEVICE=djet500.

Roger D McGraw wrote:

> I am running solaris 2.5.1 4/97 on an Ultra-1 > I have just installed ghostscript and I think it works correctly. > I can view postscript files with it without any problems. > > However I am trying to set the print filter up for ps files to > print on my deskjet670C. > > I created /etc/lp/fd/jet.fd : > > Input types: postscript > Output types: PCL > Printer types: any > Printers: any > Filter type: slow > Command: LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/opt/ARRIS604/lib /opt/AEgs/bin/gs -q -sDEVICE=djet500 -r300 -dNOPAUSE -sOutputFile=- - > > and then I changed its permissions and ownership to lp lp 664 > then I did /usr/sbin/lpfilter -f jet -F /etc/lp/fd/jet.fd > then I did > /usr/sbin/lpadmin -pdeskjet -v /dev/bpp0 -I PCL,simple > > Now when I try to print a pS file It looks like its printing the PS codes instead of > actually filtering it... > > So I think all that was done correctly, what command should I issue to use the filter? > I tried lpr -Pdeskjet -p netscape.ps (netscape.ps is a postscript file) > and I tried > gs -sDEVICE=djet500 -sOutputfile=\ netscape.ps |lpr -Pdeskjet > and many others.... > Any help is appreciated and will be summarized > Thanks, > Roger

--
Roger D. McGraw, Jr., EIT
PTAC Consulting Engineers
124 East Wright Street
Suite C
Pensacola, FL 32501

Email: roger@ptac.com (850) 432-8446 (850) 432-9875 (FAX)

--Boundary_(ID_v71GJfBaUNuqx+7teSVvgw) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7bit

I started by installing the precompiled version of ghostscript from  ftp://opcom.sun.ca/pub/freeware/ghostscript-4.03.gz and installed it using pkgadd.
I actually received nothing but me too's on this posting but I have solved the problem.
I think what I had done was mostly correct, but even though I could run ghostscript, that did not mean the lp daemon could.  The problem was that lp needed to have some environment variables set.
so now here is what I did:
I created /etc/lp/fd/jet.fd:

    Input types: postscript
    Output types: PCL
    Printer types: any
    Printers: any
    Filter type: slow
    Command: /etc/lp/fd/print
and set its permissions.  Then I created /etc/lp/fd/print:
    #!/bin/csh
    setenv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/opt/ARRIS604/lib
    setenv GS_FONTPATH /usr/openwin/lib/X11/fonts/Type1/outline
    setenv GS_LIB /usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type3
    /opt/AEgs/bin/gs -q -sDEVICE=cdj550 -dBitsPerPixel=32 -dNOPAUSE -sOutputFile=- -
then I did /usr/sbin/lpfilter -f jet -F /etc/lp/fd/jet.fd
then I did
/usr/sbin/lpadmin -pdeskjet -v /dev/bpp0 -I PCL

to print from netscape I simply issue the command lp -d deskjet
Everything seems to work fine.  The -sDEVICE=cdj550 is for color deskjets, I think for B&W use -sDEVICE=djet500.

Roger D McGraw wrote:

I am running solaris 2.5.1 4/97 on an Ultra-1
I have just installed ghostscript and I think it works correctly.
I can view postscript files with it without any problems.

However I am trying to set the print filter up for ps files to
print on my deskjet670C.

I created /etc/lp/fd/jet.fd :

Input types: postscript
Output types: PCL
Printer types: any
Printers: any
Filter type: slow
Command: LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/opt/ARRIS604/lib /opt/AEgs/bin/gs -q -sDEVICE=djet500  -r300 -dNOPAUSE -sOutputFile=- -

and then I changed its permissions and ownership to lp lp 664
then I did /usr/sbin/lpfilter -f jet -F /etc/lp/fd/jet.fd
then I did
/usr/sbin/lpadmin -pdeskjet -v /dev/bpp0 -I PCL,simple

Now when I try to print a pS file It looks like its printing the PS codes instead of
actually filtering it...

So I think all that was done correctly, what command should I issue to use the filter?
I tried lpr -Pdeskjet -p netscape.ps  (netscape.ps is a postscript file)
and I tried
gs -sDEVICE=djet500 -sOutputfile=\ netscape.ps |lpr -Pdeskjet
and many others....
Any help is appreciated and will be summarized
Thanks,
Roger

 
-- 
Roger D. McGraw, Jr., EIT
PTAC Consulting Engineers
124 East Wright Street
Suite C
Pensacola, FL 32501

Email:  roger@ptac.com
(850) 432-8446
(850) 432-9875 (FAX)
  --Boundary_(ID_v71GJfBaUNuqx+7teSVvgw)-- --Boundary_(ID_uzFljTN7gEQxITLSIUWDPg)--