Summary: | location of %PDF header | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | James Quirk <quirk> |
Component: | PDF Interpreter | Assignee: | Alex Cherepanov <alex> |
Status: | NOTIFIED FIXED | ||
Severity: | minor | CC: | jack, martin, ralph.giles |
Priority: | P3 | ||
Version: | 8.11 | ||
Hardware: | PC | ||
OS: | All | ||
Customer: | Word Size: | --- | |
Attachments: |
test of PDF floating header
patch |
Description
James Quirk
2003-11-06 09:05:41 UTC
Please attach an example file. Created attachment 354 [details] test of PDF floating header The bug can be reproduced with any PDF file. Simply prepend a PDF by a blank line, or a few lines of text, then try viewing the modified file with Acroread, Xpdf and Ghostscript. This attachment, for example, prepends four lines to the file ``annots.pdf'' shipped with GhostScript v8.11. It can be viewed with Acroread and Xpdf, but not by Ghostsript. For a realistic example of a PDF file with text before the document header, see: http://www.amrita-ebook.org/download/AMRITAv2.25 *** Bug 687601 has been marked as a duplicate of this bug. *** *** Bug 688630 has been marked as a duplicate of this bug. *** Created attachment 2868 [details]
patch
Increase the size of %stdin buffer to support larger lookahead requests and
look for for %PDF- tag in the first 1024 bytes of the file.
Ignore annotations without /Subtype hey to process one of the samp[le files.
DIFFERENCES:
No CET or Comparefiles differences.
The patch is committed as rev. 7835 and 7835. |