[gs-devel] Problems with stdin and return code -110
Sheri Steeves
Sheri_Steeves at peernet.com
Thu Feb 5 12:58:40 PST 2009
Russell,
My stdin is called a number of times, as expected. The file handle is
opened in my code and passed to the function through the caller_handle
parameter, where I retrieve the open handle. I had removed some of the
error checking and other code for brevity.
I did get around my wide name problem by copying the file to a temporary
location, and handling PDF, PS and EPS this way - giving me only a
single path of code to maintain, as I was under the impression that you
could only stream EPS and PS.
>From the online docs:
http://pages.cs.wisc.edu/~ghost/doc/svn/Use.htm#Pipes
Ghostscript cannot read PDF files from standard input or a pipe because
the PDF language inherently requires random access to the file. Thus '-'
only works with PostScript documents.
This may be where my confusion started.
If you are saying that I can stream the PDF in through the stdin, and
that ghostscript makes it's own temp copy for random access, I may go
back to the stdin approach to avoid the extra temp file copy.
Best Regards,
Sheri
More information about the gs-devel
mailing list