Bug 689949 - PDF-0.0 file can't be opened
Summary: PDF-0.0 file can't be opened
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 19:47 UTC by Marcos H. Woehrmann
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer: 384
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2008-07-08 19:47:10 UTC
The attached PDF file claims it's a PDF version 0.0 and consequently Ghostscript
refuses to open it.  I'd dismiss this as INVALID but Acrobat Reader 8.0 and
evince both open the file without complaint so I think we should probably as
well.  Editing the file and replacing the 0.0 with a 1.0 allows the file to be
read, so that appears to be the only problem.

Command line I'm using:

  bin/gs ./3658038.PDF
Comment 1 Marcos H. Woehrmann 2008-07-08 19:47:35 UTC
Created attachment 4186 [details]
3658038.PDF
Comment 2 Alex Cherepanov 2008-07-09 16:02:22 UTC
Use '%PDF-' instead of '%PDF-1.' to recognize PDF files because PDFsharp 0.8.2
generates '%PDF-0.0' and Acrobat accepts this.
The following patch has been committed as a rev. 8827.
http://ghostscript.com/pipermail/gs-cvs/2008-July/008409.html
Regression testing shows no differences.