Edward Sun
Edward Sun

Reputation: 1621

graphicsmagick/ghostscript PDF to PNG conversion: Error reading a content stream. The page may be incomplete

I've been successfully able to convert many PDFs to PNGs using "gm convert", but I've been running into an issue lately with a PDF that gives me this error:

   **** Unknown operator: '0.0000-11728996', processed as number, value: 0.0
   **** Unknown operator: '0.0000-11728996', processed as number, value: 0.0

   **** This file had errors that were repaired or ignored.
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

I've looked around the interwebz and found that it is likely something to do with ghostscript. Could someone tell me if my PDF has errors or if it's a bug in ghostscript?

Here's the PDF: https://docs.google.com/file/d/0BycjEbtUqUfNT2M0bHkteHl0NDA/edit?pli=1

Appreciate the help in advance!

Edward

Upvotes: 2

Views: 1724

Answers (1)

HABJAN
HABJAN

Reputation: 9328

For each page, Ghostscript 9.14 says:

   **** Warning: replacing malformed number '0.0000-11728996' with 0.
   **** Warning: replacing malformed number '0.0000-11728996' with 0.

The warning says it all. The number is not formatted correctly.

Upvotes: 2

Related Questions