Printing PS with GS?

Printing PS with GS?

Post by Stepp » Fri, 09 Jun 1995 04:00:00



I'm tryint to print ps with ghost script and having no luck.  
Here is what I put on the command line and the response it
gives me.  Following that are my list of installed drivers
then an excerpt from my /etc/printcap file.  I would appreciate
any help.

tabu:/usr/lib/ghostscript/examples# gs -dNOPAUSE -sDEVICE=ljet2p
-sOutputFile=/dev/lp0 tiger.ps

Initializing... done.
Ghostscript 2.6.1 (5/28/93)
Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
  All rights reserved.
Ghostscript comes with NO WARRANTY: see the file COPYING for details.
Error: /invalidfileaccess in --.outputpage--
Operand stack:
    1  true
Execution stack:
    %interp_exit  --nostringval--  --nostringval--  --nostringval--
    false --nostringval--  --nostringval--  false  --nostringval--  
    --nostringval--  --nostringval--  --nostringval--
Dictionary stack:
    532/547  0/20  6/200  45/100
Current file position is 78508

_________________________________________________________________________
          List of Drivers Installed according to "gs -h"

    x11 linux bj10e bj200 cdeskjet cdjcolor cdjmono cdj500
    cdj550 declj250 deskjet dfaxhigh dfaxlow djet500 djet500c epson
    eps9high epsonc escp2 ibmpro jetp3852 laserjet la50 la75
    lbp8 ln03 lj250 ljet2p ljet3 ljet4 ljetplus m8510
    necp6 paintjet pj pjxl pjxl300 t4693d2 t4693d4 t4693d8
    tek4696 bit bmpmono bmp16 bmp256 bmp16m gifmono gif8
    pcxmono pcxgray pcx16 pcx256 pbm pbmraw pgm pgmraw
    ppm ppmraw tiffg3 pbm pbmraw pgm pgmraw ppm
    ppmraw bit

__________________________________________________________________________

            From my /etc/printcap file (I just used the hpjlp
            settings because it was already in printcap and
            ljet2p was not).

# HP Laser jet plus
#lp|hpj:\
#        :lp=/dev/lp1:\
#        :sd=/usr/spool/lp1:\
#        :mx#0:\
#        :of=/usr/spool/lp1/hpjlp:
#        :lf=/usr/spool/lp1/hp-log:
#
# HP Laser IIp
 lp|hpj:\
         :lp=/dev/lp0:\
         :sd=/usr/spool/lp0:\
         :mx#0:\
         :of=/usr/spool/lp0/ljet2p:

________________________________________________________________________

Thanks for any help!!



 
 
 

Printing PS with GS?

Post by Steffen Ullri » Sat, 10 Jun 1995 04:00:00




>tabu:/usr/lib/ghostscript/examples# gs -dNOPAUSE -sDEVICE=ljet2p
>-sOutputFile=/dev/lp0 tiger.ps

>Initializing... done.
>Ghostscript 2.6.1 (5/28/93)
>Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
>  All rights reserved.
>Ghostscript comes with NO WARRANTY: see the file COPYING for details.
>Error: /invalidfileaccess in --.outputpage--

either you don't have /dev/lp0, you are not allowed to write (you should
use lpr I think, not write directly, if you will write directly you should
be superuser and NO OTHER PROCESS should be using this device == stop lpr)
or gs can't write to a device (then you must write to a file, or to stdout
and pipe to lpr or /dev/lp0)

 
 
 

Printing PS with GS?

Post by John Burt » Thu, 15 Jun 1995 04:00:00




   >
   >tabu:/usr/lib/ghostscript/examples# gs -dNOPAUSE -sDEVICE=ljet2p
   >-sOutputFile=/dev/lp0 tiger.ps
   >
   >Initializing... done.
   >Ghostscript 2.6.1 (5/28/93)
   >Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
   >  All rights reserved.
   >Ghostscript comes with NO WARRANTY: see the file COPYING for details.
   >Error: /invalidfileaccess in --.outputpage--

   either you don't have /dev/lp0, you are not allowed to write (you should
   use lpr I think, not write directly, if you will write directly you should
   be superuser and NO OTHER PROCESS should be using this device == stop lpr)
   or gs can't write to a device (then you must write to a file, or to stdout
   and pipe to lpr or /dev/lp0)

Hmmm...on my system(s) the first printer port (known to DOS as LPT1) is actually
/dev/lp1, not /dev/lp0...

John
--
John Burton                      


(804) 865-7491 (voice)           (804) 865-1021 (fax)

 
 
 

1. Printing ps with gs?



You're trying to print directly to the printer port.  This completely
bypasses lpr, which probably isn't what you want.  To get it to
spool through lpr, use -sOutputFile=\|lpr  (the three characters in
the middle should be equals, backslash, vertical line (pipe), in case
my newsposter sent them in EBCDIC).  Check out the gs man page for
other options.

-FwR

2. ftp Problem with AIX 3.2.3

3. Print .ps with gs to bj200 on slackware 3

4. Can't reboot at root from "xdm"

5. want ps file that prints ps file then exits gs

6. Adding SIMM to Sparc 5

7. Printing PS file directly to BJ10e with gs...

8. PCB Milling Machine and Linux?

9. PS print queue with GS on RS6000

10. How do I print PS with non-PS printer ?

11. How to print PS file in a non-PS printer?

12. How to print a ps file to a non-ps printer thru gs241?

13. ps-printing [was Re: ASCII 2 PS Formatter??]