The customer reports and I've verified that the attached PDF file cannot be read by Ghostscript 8.54, 8.62, nor head (r8785). gs8.54 reports "Error: /undefined in /BXlevel", more recent versions report the generic "Error: /undefined in --run--". Adobe Acrobat and Apple Preview open the file without error. The command line I'm using: bin/gs -sDEVICE=ppmraw -sOutputFile=test.ppm ./09_ER_81776783_20080514155023.pdf
Created attachment 4062 [details] 09_ER_81776783_20080514155023.pdf
GPL Ghostscript SVN PRE-RELEASE 8.63 (2008-03-01) Copyright (C) 2008 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. **** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF. << /Size 13 /Root 1 0 R /Info 12 0 R >> %Resolving: [1 0] << /Type /Catalog /Pages 6 0 R /Outlines 10 0 R /PageMode /UseOutlines >> endobj %Resolving: [6 0] << /Type /Pages /Count 1 /MediaBox [ 0 0 595 842 ] /Kids [ 7 0 R ] >> endobj %Resolving: [1 0] %Resolving: [1 0] %Resolving: [6 0] Processing pages 1 through 1. Page 1 %Resolving: [1 0] %Resolving: [6 0] %Resolving: [7 0] << /Type /Page /Parent 6 0 R /Resources 5 0 R /Contents 8 0 R /Rotate 0 >> endjobj Error: /undefined in --run-- Operand stack: --nostringval-- 1 1 --nostringval-- --nostringval-- --nostringval-- 5592 7 0 -- dict:5/5(L)-- 10 --dict:10/10(ro)(G)-- (endjobj) Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push - -nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- -- nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- - -nostringval-- --nostringval-- %loop_continue --nostringval-- 1 1 0 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- Dictionary stack: --dict:1148/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- -- dict:106/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:21/25(L)-- Current allocation mode is local GPL Ghostscript SVN PRE-RELEASE 8.63: Unrecoverable error, exit code 1
Cannot access the sample file, but from comment #2 it seems as this bug has two parts: (a) Invalid input PDF, a token "endobj" being misspelled as "endjobj" (with an extra "j"); (b) The Ghostscript problem described in bug #687796 comment #25 point (I), with a patch suggested there.
Created attachment 4070 [details] patch This is yet another case of a misspelled keyword.
The patch is committed as a rev. 8787. Regression testing shows no differences.