Bug 688630 - /undefined in obj runing PDF
Summary: /undefined in obj runing PDF
Status: NOTIFIED DUPLICATE of bug 687125
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: All Windows XP
: P3 normal
Assignee: Ray Johnston
Depends on:
Reported: 2006-04-04 08:37 UTC by Ralph Giles
Modified: 2011-09-18 21:45 UTC (History)
0 users

See Also:
Customer: 670
Word Size: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Giles 2006-04-04 08:37:22 UTC
Customer reports an error /undefined in obj when running the attached PDF
document. I have confirmed with HEAD on linux.
Comment 1 Ralph Giles 2006-04-04 08:39:33 UTC
Created attachment 2142 [details]
problem PDF file

attaching problem file
Comment 2 Ray Johnston 2006-04-04 09:17:47 UTC
This PDF file has garbage at the front that prevents it from being
recognized as PDF:


These _are_ valid PostScript comments which causes the remainder of the file to
be processed as PostScript. When the following sequence:

5 0 obj

is processed as PostScript, the first two lines are comments, then the 5 and
0 are pushed on the operand stack, but the 'obj' is not a valid PostScript
operator, so causes an 'undefined' error.

This tool should have an option to save a valid PDF (without prefix garbage).

Section 3.4 of the PDF specification describes the valid file structure.

When I remove the first 71 bytes (the first three lines) this file displays
properly with Ghostscript.

Comment 3 Ray Johnston 2006-04-04 09:34:16 UTC

*** This bug has been marked as a duplicate of 687125 ***
Comment 4 Marcos H. Woehrmann 2011-09-18 21:45:58 UTC
Changing customer bugs that have been resolved more than a year ago to closed.