Thread View: gnu.ghostscript.bug
2 messages
2 total messages
Started by Bo Thide'
Sun, 22 Nov 1992 15:32
Can ghostcript be used as a simple UNIX filter?
Author: Bo Thide'
Date: Sun, 22 Nov 1992 15:32
Date: Sun, 22 Nov 1992 15:32
29 lines
1756 bytes
1756 bytes
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?
The closest I have got is
gs -q -sDEVICE=ljet3 -r300 -dNOPAUSE -sOUTPUTFILE='|lp -or'
but it does not give either (1) or (2) above since it prints to |lp -or
and not to stdout and I still have to type 'quit" at a 'GS>' prompt. This
is unacceptable in my application where I just want to filter PS data.
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-
Re: Can ghostcript be used as a simple UNIX filter?
Author: Matti Aarnio
Date: Mon, 23 Nov 1992 11:32
Date: Mon, 23 Nov 1992 11:32
34 lines
1939 bytes
1939 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads