[gs-bugs] [Bug 692252] GS fails to read some PDF files

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Jun 7 16:29:05 UTC 2011


--- Comment #11 from James Cloos <cloos at jhcloos.com> 2011-06-07 16:29:04 UTC ---
There is a large stream in that pdf (in object 49) which prints the text in the
coloured circles, one digit at a time.

It uses this idiom to print each digit:

 q 0 0 566.929 532.57 re W n BT /F10 8.58983 Tf 280.601 263.422 Td (0) Tj ET Q

One of those q..Q sections looks like this:

 q 0 0 566.929 532.57 re W n BT /F6 24.3379 Tf inf 266.285 Td () Tj ET Q

The string “inf” in that line was most likely generated by printf(3) from an
infinite floating point value.  But the PDF language does not support inf or
nan for infinite or not-a-number floats; hense the error.

If a PDF viewer skips forward after the error only to the next Q in the stream,
then this particular PDF will render is fine.  If it skips to the end of the
stream, though, then 

Incidently, the two q..Q sections immediately before that buggy one also print
empty strings (the parentheses are the string delimiters); no other empty
strings exist in that stream.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list