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