Bug 689949

Summary: PDF-0.0 file can't be opened
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PS InterpreterAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: 384 Word Size: ---

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.