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

  1. Newsgroups: gnu.ghostscript.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!irfu.SE!bt
  3. From: bt@irfu.SE (Bo Thide')
  4. Subject: Can ghostcript be used as a simple UNIX filter?
  5. Message-ID: <1992Nov22.153252.26730@irfu.se>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Swedish Institute of Space Physics, Uppsala, Sweden
  8. Distribution: gnu
  9. Date: Sun, 22 Nov 1992 15:32:52 GMT
  10. Approved: bug-ghostscript@prep.ai.mit.edu
  11. Lines: 31
  12.  
  13. I have tried to use ghostscript 2.5.2 as a simple UNIX filter for translating
  14. pictures from PostScript to a supported output language (PCL, pbm, ...).
  15. Despite numerous attempts with various combinations of the flags -q,
  16. -sDEVICE, -dNOPAUSE, and -sOUTPUTFILE, I have failed miserably.
  17.  
  18. What I want is:
  19.  
  20. (1)  To be able to send processed output directy to stdout.
  21.  
  22. (2)  Avoid getting caught inside ghostscript (I don't want to
  23.      see the 'GS>' prompt, ever).
  24.  
  25. Surely this must be possible or is there a serious design flaw in ghosctript?
  26.  
  27. The closest I have got is
  28. gs -q -sDEVICE=ljet3 -r300 -dNOPAUSE -sOUTPUTFILE='|lp -or'
  29. but it does not give either (1) or (2) above since it prints to |lp -or
  30. and not to stdout and I still have to type 'quit" at a 'GS>' prompt.  This
  31. is unacceptable in my application where I just want to filter PS data.
  32.  
  33. Any help much appreciated.  Please e-mail.
  34.  
  35. Bo
  36. -- 
  37.    ^   Bo Thide'----------------------------------------------Science Director
  38.   |I|        Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden
  39.   |R|    Phone: (+46) 18-303671.  Fax: (+46) 18-403100.  IP: 130.238.30.23
  40.  /|F|\          INTERNET: bt@irfu.se      UUCP: ...!mcvax!sunic!irfu!bt  
  41.  ~~U~~ ----------------------------------------------------------------sm5dfw-
  42.  
  43.  
  44.