Page 1 of 1

Converting PDF Created in Acrobat: "/syntaxerror in pdfopen"

Posted: 2014-04-01T04:51:59-07:00
by kubilayrd
Hi,

I'm using this bundle of ImageMagick:

Code: Select all

Version: ImageMagick 6.5.4-7 2012-05-09 Q16 OpenMP
I have a PDF file that I'm trying to convert to JPEG like this:

Code: Select all

# convert ss.pdf ss.jpg
However, every time I try, I get the following error:

Code: Select all

Error: /syntaxerror in pdfopen
Operand stack:
   (/tmp/gs_RB6N7U)   (<<\n  /ASCII85EncodePages false\n  /AllowTransparency false\n  /AutoPositionEPSFiles true\n  /AutoRotatePages /None\n  /Binding /Left\n  /CalGrayProfile \(Dot Gain 20%\)\n  /CalRGBProfile \(sRGB IEC61966-2.1\)\n ...)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   %array_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1156/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--   --dict:7/15(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `ss.pdf': There is no such file or path @ pdf.c/ReadPDFImage/611.
convert: missing an image filename `ss.jpg' @ convert.c/ConvertImageCommand/2800.
When I inspect the properties of file, the creator and encoding software infos are like this:

Code: Select all

Content Creator: Acrobat 11.0.4
Encoding software: Acrobat Distiller 8.0.0 (Macintosh)
Size: 11,5 MB
Resolution: 467 × 680
I have the same PDF with different properties, they're like:

Code: Select all

Content Creator: Adobe InDesign CS6 (Macintosh)
Encoding software: Adobe PDF Library 10.0.1
Size: 93,9 MB
Resolution: 467 × 680 (Same)
This second file is being converted without any problem. I had the same error in different files that were created by Acrobad and encoded by Distiller, too.

Is this exactly about these properties? How can I work it out?

Re: Converting PDF Created in Acrobat: "/syntaxerror in pdfo

Posted: 2014-04-01T05:43:45-07:00
by snibgo
kubilayrd wrote:GPL Ghostscript 8.70
This is old. Upgrading to a more recent GS might solve the problem. If you put your PDF somewhere like dropbox.com and paste the URL here, someone can check.
kubilayrd wrote:ImageMagick 6.5.4-7
This is also old. Very very old. It probably makes no difference in this case (because GS is reporting the error), but I suggest you upgrade.