home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / ghostscr / bug / 1235 < prev    next >
Encoding:
Text File  |  1992-11-24  |  1.8 KB  |  49 lines

  1. Newsgroups: gnu.ghostscript.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!utu.fi!mea
  3. From: mea@utu.fi (Matti Aarnio)
  4. Subject: Re: Can ghostcript be used as a simple UNIX filter?
  5. Message-ID: <1992Nov23.073232.18437@polaris.utu.fi>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: University of Turku, Computing Centre
  8. References: <1992Nov22.153252.26730@irfu.se>
  9. Distribution: gnu
  10. Date: Mon, 23 Nov 1992 11:32:32 GMT
  11. Approved: bug-ghostscript@prep.ai.mit.edu
  12. Lines: 35
  13.  
  14. bt@irfu.SE (Bo Thide') writes:
  15. >
  16. >I have tried to use ghostscript 2.5.2 as a simple UNIX filter for translating
  17. >pictures from PostScript to a supported output language (PCL, pbm, ...).
  18. >Despite numerous attempts with various combinations of the flags -q,
  19. >-sDEVICE, -dNOPAUSE, and -sOUTPUTFILE, I have failed miserably.
  20. >
  21. >What I want is:
  22. >(1)  To be able to send processed output directy to stdout.
  23. >(2)  Avoid getting caught inside ghostscript (I don't want to
  24. >     see the 'GS>' prompt, ever).
  25. >
  26. >Surely this must be possible or is there a serious design flaw in ghosctript?
  27.  
  28.   It is, I have done it.  (Altough it feels a bit cludgy, if I may say so.)
  29.  
  30. >The closest I have got is
  31. >gs -q -sDEVICE=ljet3 -r300 -dNOPAUSE -sOUTPUTFILE='|lp -or'
  32.  
  33. cat inpfile | gs -q -dNOPAUSE -sDEVICE=ljet3 -r300 -sOutputFile=- - > output.ljet3 
  34.  
  35.   There is much usefull information at the "gs -h" -output. Including "-" as
  36. file names...
  37.  
  38. >Any help much appreciated.  Please e-mail.
  39.  
  40. >Bo
  41. >   ^   Bo Thide'----------------------------------------------Science Director
  42. >  |I|        Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden
  43. >  |R|    Phone: (+46) 18-303671.  Fax: (+46) 18-403100.  IP: 130.238.30.23
  44. > /|F|\          INTERNET: bt@irfu.se      UUCP: ...!mcvax!sunic!irfu!bt  
  45. > ~~U~~ ----------------------------------------------------------------sm5dfw-
  46.  
  47.     /Matti aarnio <mea@utu.fi>  oh1mqk, Postmaster
  48.  
  49.