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
URL:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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:

%NumCopies=1
%PDFfileName=R04572B_SRPSTD02_50311_PDF_PDF
%[EndCPOW]

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

%PDF-1.3
%╟∞Åó
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.