SUMMARY: gfhostscript print filter for postscript on deskjet

From: Roger D McGraw (roger@ptac.com)
Date: Mon Feb 16 1998 - 07:35:10 CST


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)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:31 CDT