Bug 690488

Summary: Error: /undefined in --run--
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: Macintosh   
OS: MacOS X   
Customer: Word Size: ---

Description Marcos H. Woehrmann 2009-05-19 09:05:43 UTC
The attached file produces an "Error: /undefined in --run--" error with 8.64 and head (r9743).   Both 
Apple Preview and Acrobat 9 open the file without problem.

The command line I'm using for testing:

  bin/gs -sDEVICE=ppmraw -o test.ppm ./BigBBoxTesting_orig.pdf
Comment 1 Marcos H. Woehrmann 2009-05-19 09:05:54 UTC
Created attachment 5024 [details]
BigBBoxTesting_orig.pdf
Comment 2 Alex Cherepanov 2009-05-19 16:01:08 UTC
The sample PDF file has incorrect /length attributes in the stream dictionaries.

When the /Length attribute is incorrect, PDF interpreter removes it from the
stream dictionary.

This patch adds support of the missing /Length attribute to the pattern
handling code.

The following patch has been committed as a rev. 9744.
http://ghostscript.com/pipermail/gs-cvs/2009-May/009330.html
Regression testing shows no differences.