Bug 692969

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 2012-04-05 21:13:32 UTC
The customer reports and I've verified that the attached PDF file generates a "Error: /typecheck in --run--" error when read by Ghostscript.  The customer is using 9.01 but earlier and later versions that I tried fail in the same way.  Apple Preview, Adobe Acrobat, and mu all read the file without problem.

The command line I'm using:

  bin/gs -sDEVICE=ppmraw -o test.ppm ./E030112_0000105765.pdf
Comment 2 Alex Cherepanov 2012-04-19 17:06:34 UTC
The file has an xref entry that points to a wrong object.
Ghostscript detects this, tries to rebuild the xref but cannot
do this for the files with object streams.

The file runs to completion with -dNoVerifyXref option.

As a quick fix I'll disable xref verification for the files with object streams.
We need to consider extending xref rebuilding code to support object streams.
Comment 3 Alex Cherepanov 2012-04-24 21:53:47 UTC
Don't verify stream xref table because we cannot repair PDF files with
new object format. Such verification only increases the chance that the
file fails.

A patch that does this has been committed as:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f1830075608195e2976751303d220fda3f796abb