Oleg Goldshmidt wrote:

David Harel <[EMAIL PROTECTED]> writes:



However if I try the same process using pipes:
smb2ps infile | pstopnm -stdout - | pnmtojpeg > file

Does not work.
The reason it does not work in pipe is that the [EMAIL PROTECTED]@# pstopnm
command adds it's own garbage to the output file when working using
stdio which is the same message you see on stdout using real files.



I just picked a random ps file (well, I knew it was not multipage) and did

cat foo.ps | pstopnm -stdout - | pnmtojpeg > foo.jpeg

and then looked at the result with xv - looked OK to me...

Then I tried a 2-page ps file and got the first page OK, but ghostscript died in the middle of an acute case of SIGPIPE.
I don't know if it is possible to deal with multiple pages.




I noticed that on some cases the above example works well. Most of the time it does not. I did not relate the success to the number of pages but I can tell you that the imput file is 60kb and when using gs to view it it looks enormous but when I print it it looks just fine.

--
Thanks.

David Harel,

==================================

Home office +972 4 6921986
Fax:        +972 4 6921986
Cellular:   +972 54 534502
Snail Mail: Amuka
           D.N Merom Hagalil
           13802
           Israel
Email:      [EMAIL PROTECTED]




================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to