Re: Fix for 687474, Damaged pdf files won't display with Ghostscript
Alex Cherepanov <[email protected]> Wed, 26 May 2004 07:51:46 -0400
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Organization | Coscript Software |
| Message-ID | <[email protected]> |
Igor V. Melichev wrote: > Your logic looks good. > Could you please do that with no 'bytesavailable' ? This cannot be done. How can one read the last 1K block of a PDF file without knowing its size. The old PDF interpreter uses 'bytesavailable' here and elsewhere. > This is not a strong requirement, but I'd prefer to minimize problems, > which appear if a PDF is being read from a pipe. > Fortunately pipes on Windows appear some positionable > if the pipe redirects a file with. PDF file cannot be read from pipes because PDF requires direct access to the file. If we want to read from the pipe we need to filter the input stream through /ReusableStreamDecode . Let's open a separate enhancement request. Buffering the pipe is viable even with the current implementation of /ReusableStreamDecode. Most PDF files easily fit in modern virtual memory. Regards, Alex