PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by wor ra » Wed, 14 Jan 1998 04:00:00



hi everyone

i've been trying to get my printer(s) set up on my system and i am able
to print plain ascii onto both my epson (really old * thing that it
is) and my deskjet.. now, it would be much nicer (and less costly) if i
could print postscript to these non-postscipt printers so i found out
about ghostscript.  (i have actually got ghoscript 2.6.2 on my system
and read up on it.)

i found a very 'simple' (nothing is simply really is it? :-) ) pipeline
that was to print ps on a non-ps printer - ok me thinks so i try it out
using a ps doucment i found, and executed:
 gs -dSAFER -dNOPAUSE -sDEVICE=epson -sOutputFile= | lpr file.ps

i removed the 'filter' (the 'if') entry from /etc/printcap just to be
sure that what was going to be printed was the output of this file

however the printer output the 'lovely' ps as the ascii-ps code; ie
beginning the file with
 %!PS-Adobe-2.0
 ...
 %%EOF

(i actually viewed the ps file using ghostview and it is valid
postscript)

i also tried out a ps-printcap i found tat did the 'print ps on non-ps
printer' trick - here is the lsm entry
 Title:  ps-printcap
 Version: 1
 Entered-date: 22NOV95
 Description: printcap and filter: printing postscript on non-postscript
\
 printer + text as postscript Keywords: Postscript Printing text

 Maintained-by:
 Primary-site:
sunsite.unc.edu:/pub/Linux/system/Printing/ps-printcap.tgz

and the files in the tgz were:
 /etc/printcap
  lp: \
  :lp:lp=/dev/lp1: \
  :sd=/var/spool/lpd/lp: \
  :mx%0: \
  :if=/etc/filter: \
  :sh:

 /etc/filter
  #!/bin/sh
  # Set the PRINTER var to a "gs" device.
  # Try gs -h for a list of drivers

  #PRINTER=djet500 # original - changed to try out my epson
  #PRINTER=deskjet
  PRINTER=epson
  nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER \
          -dA4 -dNOPAUSE \
   -dSAFER -sOutputFile=- -

i installed these and tried to print ascii text files but these were
unsuccessful.  (i have nenscript 1.13++ installed).  i even tried
  nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER -dA4 -dNOPAUSE -dSAFER
-sOutputFile=- - | lpr

from the command line

can someone *please* tell me where i'm going wrong on this but even
better, can someone please give me information (or preferably send me)
for setting up their /etc/termcap and /etc/filter files for PRINTING
POSTSCIPT onto my NON-POSTSCRIPT printers which are:
 epson lq100 (told you it was really old and *!!!)
 hp 600

this would be a greate help for my work.  any help and advice will be
greatly appreciated and i'll definitely give you acknowledgement in my
work !!! (no hard cash i'm affraid - i'm still studying :-) )

cheers

ray

ps - can people cc their replies to me - thanks again

anyone who has viewed src code in 1up will know what a help it is to
have something that'll dump 2 or 4 (or even 6) pages of src code onto
one a4 page!!!

 
 
 

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by pr34 » Wed, 14 Jan 1998 04:00:00



> hi everyone

> i've been trying to get my printer(s) set up on my system and i am able
> to print plain ascii onto both my epson (really old * thing that it
> is) and my deskjet.. now, it would be much nicer (and less costly) if i
> could print postscript to these non-postscipt printers so i found out
> about ghostscript.  (i have actually got ghoscript 2.6.2 on my system
> and read up on it.)

> i found a very 'simple' (nothing is simply really is it? :-) ) pipeline
> that was to print ps on a non-ps printer - ok me thinks so i try it out
> using a ps doucment i found, and executed:
>  gs -dSAFER -dNOPAUSE -sDEVICE=epson -sOutputFile= | lpr file.ps

> i removed the 'filter' (the 'if') entry from /etc/printcap just to be
> sure that what was going to be printed was the output of this file

> however the printer output the 'lovely' ps as the ascii-ps code; ie
> beginning the file with
>  %!PS-Adobe-2.0
>  ...
>  %%EOF

> (i actually viewed the ps file using ghostview and it is valid
> postscript)

> i also tried out a ps-printcap i found tat did the 'print ps on non-ps
> printer' trick - here is the lsm entry
>  Title:  ps-printcap
>  Version: 1
>  Entered-date: 22NOV95
>  Description: printcap and filter: printing postscript on non-postscript
> \
>  printer + text as postscript Keywords: Postscript Printing text

>  Maintained-by:
>  Primary-site:
> sunsite.unc.edu:/pub/Linux/system/Printing/ps-printcap.tgz

> and the files in the tgz were:
>  /etc/printcap
>   lp: \
>   :lp:lp=/dev/lp1: \
>   :sd=/var/spool/lpd/lp: \
>   :mx%0: \
>   :if=/etc/filter: \
>   :sh:

>  /etc/filter
>   #!/bin/sh
>   # Set the PRINTER var to a "gs" device.
>   # Try gs -h for a list of drivers

>   #PRINTER=djet500 # original - changed to try out my epson
>   #PRINTER=deskjet
>   PRINTER=epson
>   nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER \
>           -dA4 -dNOPAUSE \
>    -dSAFER -sOutputFile=- -

> i installed these and tried to print ascii text files but these were
> unsuccessful.  (i have nenscript 1.13++ installed).  i even tried
>   nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER -dA4 -dNOPAUSE -dSAFER
> -sOutputFile=- - | lpr

try -sOutputFile=/dev/lp1  and leave | lpr !!!

 
 
 

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by Jerald Tiller » Wed, 14 Jan 1998 04:00:00


[snip]

Quote:> that was to print ps on a non-ps printer - ok me thinks so i try it out
> using a ps doucment i found, and executed:
>  gs -dSAFER -dNOPAUSE -sDEVICE=epson -sOutputFile= | lpr file.ps

> can someone *please* tell me where i'm going wrong on this but even
> better, can someone please give me information (or preferably send me)
> for setting up their /etc/termcap and /etc/filter files for PRINTING
> POSTSCIPT onto my NON-POSTSCRIPT printers which are:
>  epson lq100 (told you it was really old and *!!!)
>  hp 600

> cheers

> ray

> ps - can people cc their replies to me - thanks again

[snip]being the lazy person that i am i dislike to have to print anything
from the commandline.  since i wanted to be able to print from any
application without worrying about
any of this i got ahold of a program called magicfilter (its somewhere in
the sunsite
archives -- i don't remember exactly where) and installed it.

now i can print from the command line, from mozilla, from applix, or any
other app
regardless of whether or not it uses postscript.  i use it with an hp 500C
deskjet and
a brother laser without any probs.

jt

 
 
 

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by Artur Kedziersk » Thu, 15 Jan 1998 04:00:00


        Try to get a program called 'aps' of ftp://sunsite.unc.edu. I
used it to get my non-postscript printer to print postscript.


: hi everyone

: i've been trying to get my printer(s) set up on my system and i am able
: to print plain ascii onto both my epson (really old * thing that it
: is) and my deskjet.. now, it would be much nicer (and less costly) if i
: could print postscript to these non-postscipt printers so i found out
: about ghostscript.  (i have actually got ghoscript 2.6.2 on my system
: and read up on it.)

: i found a very 'simple' (nothing is simply really is it? :-) ) pipeline
: that was to print ps on a non-ps printer - ok me thinks so i try it out
: using a ps doucment i found, and executed:
:  gs -dSAFER -dNOPAUSE -sDEVICE=epson -sOutputFile= | lpr file.ps

: i removed the 'filter' (the 'if') entry from /etc/printcap just to be
: sure that what was going to be printed was the output of this file

: however the printer output the 'lovely' ps as the ascii-ps code; ie
: beginning the file with
:  %!PS-Adobe-2.0
:  ...
:  %%EOF

: (i actually viewed the ps file using ghostview and it is valid
: postscript)

: i also tried out a ps-printcap i found tat did the 'print ps on non-ps
: printer' trick - here is the lsm entry
:  Title:  ps-printcap
:  Version: 1
:  Entered-date: 22NOV95
:  Description: printcap and filter: printing postscript on non-postscript
: \
:  printer + text as postscript Keywords: Postscript Printing text

:  Maintained-by:
:  Primary-site:
: sunsite.unc.edu:/pub/Linux/system/Printing/ps-printcap.tgz

: and the files in the tgz were:
:  /etc/printcap
:   lp: \
:   :lp:lp=/dev/lp1: \
:   :sd=/var/spool/lpd/lp: \
:   :mx%0: \
:   :if=/etc/filter: \
:   :sh:

:  /etc/filter
:   #!/bin/sh
:   # Set the PRINTER var to a "gs" device.
:   # Try gs -h for a list of drivers

:   #PRINTER=djet500 # original - changed to try out my epson
:   #PRINTER=deskjet
:   PRINTER=epson
:   nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER \
:           -dA4 -dNOPAUSE \
:    -dSAFER -sOutputFile=- -

: i installed these and tried to print ascii text files but these were
: unsuccessful.  (i have nenscript 1.13++ installed).  i even tried
:   nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER -dA4 -dNOPAUSE -dSAFER
: -sOutputFile=- - | lpr

: from the command line

: can someone *please* tell me where i'm going wrong on this but even
: better, can someone please give me information (or preferably send me)
: for setting up their /etc/termcap and /etc/filter files for PRINTING
: POSTSCIPT onto my NON-POSTSCRIPT printers which are:
:  epson lq100 (told you it was really old and *!!!)
:  hp 600

: this would be a greate help for my work.  any help and advice will be
: greatly appreciated and i'll definitely give you acknowledgement in my
: work !!! (no hard cash i'm affraid - i'm still studying :-) )

: cheers

: ray

: ps - can people cc their replies to me - thanks again

: anyone who has viewed src code in 1up will know what a help it is to
: have something that'll dump 2 or 4 (or even 6) pages of src code onto
: one a4 page!!!

--
=================================================================

University of California, Riverside    
Computer Science

 
 
 

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by George Antan » Thu, 22 Jan 1998 04:00:00


I think "sDEVICE=epson" is wrong; try "sDEVICE=escp2": it works fine with my
Stylus Color IIs.
Bye

--

http://www.geocities.com/TimesSquare/Battlefield/4242/

 
 
 

PRINTING POSTSCRIPT TO NON-POSTSCRIPT PRINTER - help...

Post by w.. » Fri, 23 Jan 1998 04:00:00


I finally am able to send postscript to my trusty Epson AP3250 Escp2
Action Printer after installing magicfilter, using its epson-lq filter
modified to say ap3250 instead of epson.  


>hi everyone

>i've been trying to get my printer(s) set up on my system and i am able
>to print plain ascii onto both my epson (really old * thing that it
>is) and my deskjet.. now, it would be much nicer (and less costly) if i
>could print postscript to these non-postscipt printers so i found out
>about ghostscript.  (i have actually got ghoscript 2.6.2 on my system
>and read up on it.)

>i found a very 'simple' (nothing is simply really is it? :-) ) pipeline
>that was to print ps on a non-ps printer - ok me thinks so i try it out
>using a ps doucment i found, and executed:
> gs -dSAFER -dNOPAUSE -sDEVICE=epson -sOutputFile= | lpr file.ps

>i removed the 'filter' (the 'if') entry from /etc/printcap just to be
>sure that what was going to be printed was the output of this file

>however the printer output the 'lovely' ps as the ascii-ps code; ie
>beginning the file with
> %!PS-Adobe-2.0
> ...
> %%EOF

>(i actually viewed the ps file using ghostview and it is valid
>postscript)

>i also tried out a ps-printcap i found tat did the 'print ps on non-ps
>printer' trick - here is the lsm entry
> Title:  ps-printcap
> Version: 1
> Entered-date: 22NOV95
> Description: printcap and filter: printing postscript on non-postscript
>\
> printer + text as postscript Keywords: Postscript Printing text

> Maintained-by:
> Primary-site:
>sunsite.unc.edu:/pub/Linux/system/Printing/ps-printcap.tgz

>and the files in the tgz were:
> /etc/printcap
>  lp: \
>  :lp:lp=/dev/lp1: \
>  :sd=/var/spool/lpd/lp: \
>  :mx%0: \
>  :if=/etc/filter: \
>  :sh:

> /etc/filter
>  #!/bin/sh
>  # Set the PRINTER var to a "gs" device.
>  # Try gs -h for a list of drivers

>  #PRINTER=djet500 # original - changed to try out my epson
>  #PRINTER=deskjet
>  PRINTER=epson
>  nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER \
>          -dA4 -dNOPAUSE \
>   -dSAFER -sOutputFile=- -

>i installed these and tried to print ascii text files but these were
>unsuccessful.  (i have nenscript 1.13++ installed).  i even tried
>  nenscript -ZB -p- | gs -q -sDEVICE=$PRINTER -dA4 -dNOPAUSE -dSAFER
>-sOutputFile=- - | lpr

>from the command line

>can someone *please* tell me where i'm going wrong on this but even
>better, can someone please give me information (or preferably send me)
>for setting up their /etc/termcap and /etc/filter files for PRINTING
>POSTSCIPT onto my NON-POSTSCRIPT printers which are:
> epson lq100 (told you it was really old and *!!!)
> hp 600

>this would be a greate help for my work.  any help and advice will be
>greatly appreciated and i'll definitely give you acknowledgement in my
>work !!! (no hard cash i'm affraid - i'm still studying :-) )

>cheers

>ray

>ps - can people cc their replies to me - thanks again

>anyone who has viewed src code in 1up will know what a help it is to
>have something that'll dump 2 or 4 (or even 6) pages of src code onto
>one a4 page!!!

--

Robert Price
"What lies behind us and what lies before us are tiny matters compared to
what lies within us" - Ralph W. Emerson
e-mail: bobprice at enteract dot com