Bug 692362

Summary: Error: /typecheck in --run--
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P1    
Version: master   
Hardware: PC   
OS: All   
Customer: 780 Word Size: ---

Description Marcos H. Woehrmann 2011-07-20 17:11:23 UTC
The customer reports and I've verified that the attached PDF file generates a Error: /typecheck in --run-- when read by Ghostscript head (467b64692f0b74244fd0bc0748309d05b2f09294).

Ken did some analysis and found: 

The PDF file contains a Form XObject (47 0 obj) which has no content stream. This seems (not unreasonably) to confuse the PDF interpreter. If I remove the /R2 Do from the page content stream so that we don't use the Form XObject, then the file runs to completion.


Adobe Acrobat X 10.1.0 and Apple Preview 5.0.3 read the file without complaint; mupdf generates a warning but reads the file correctly.

The command line I'm using:

  bin/gs -sDEVICE=ppmraw -o test.pdf ./DSP773.pdf
Comment 2 Alex Cherepanov 2011-07-21 03:54:47 UTC
Check for the case, where the modified stream dictionary is missing
/File attribute (probably, because the original stream object was
missing the stream body) and provide an empty stream.

The patch http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=4a1159926a8094f19bcacddf0503b5a06edd9184 has been committed.
Comment 3 Marcos H. Woehrmann 2011-08-26 19:42:27 UTC
The content of attachment 7692 [details] has been deleted by
    Marcos H. Woehrmann <marcos.woehrmann@artifex.com>
who provided the following reason:

Customer requested that document be deleted after the bug was fixed.

The token used to delete this attachment was generated at 2011-08-26 12:41:59 PDT.