|Summary:||location of %PDF header|
|Product:||Ghostscript||Reporter:||James Quirk <quirk>|
|Component:||PDF Interpreter||Assignee:||Alex Cherepanov <alex>|
|Severity:||minor||CC:||jack, martin, ralph.giles|
test of PDF floating header
Description James Quirk 2003-11-06 09:05:41 UTC
Comment 1 Dan Coby 2003-11-09 23:18:40 UTC
Please attach an example file.
Comment 2 James Quirk 2003-11-10 07:36:25 UTC
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
Comment 3 Ray Johnston 2004-09-01 23:12:27 UTC
*** Bug 687601 has been marked as a duplicate of this bug. ***
Comment 4 Ray Johnston 2006-04-04 09:34:17 UTC
*** Bug 688630 has been marked as a duplicate of this bug. ***
Comment 5 Alex Cherepanov 2007-04-08 11:29:49 UTC
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.
Comment 6 Alex Cherepanov 2007-04-08 11:47:22 UTC
The patch is committed as rev. 7835 and 7835.