Page 1 of 1

PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-22T14:11:46-07:00
by DjPizat
Hello,
When i create a PDF using Acrobat 8.2.1 and try to convert it to a JPG everything works great.
When i create the same exact PDF using Acrobat 9.2.0 i receive the following error message:

Error: /syntaxerror in readxref
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1060/1417(ro)(G)-- --dict:0/20(G)-- --dict:73/200(L)-- --dict:73/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:14/15(L)--
Current allocation mode is local

This is the code that I'm using to create the JPGs:
$temp = exec("convert -colorspace RGB -interlace none -quality 70 -density 72 test.pdf sample.jpg", $output, $result);

If anyone has any ideas on how to fix this please let me know.
Thanks!
-Pat

Re: PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-25T15:20:52-07:00
by magick
Can you post a URL to your PDF image. We need to reproduce the problem before we can comment.

Re: PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-27T16:42:23-07:00
by anthony
Also it may be Acrobat 9 is using a PDF feature that was not implemented in your installed version of Ghostscript. Does acrobat 9 have options for other PDF versions?

Re: PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-30T08:19:37-07:00
by DjPizat
I'm looking into this further I will keep you posted. Thanks for the replies

Re: PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-30T08:55:56-07:00
by DjPizat
Ok so good news is that if i use Acrobat 9 and export it to either PDF/A, PDF/E, or PDF/X it works, but a regular create PDF from file does not. This is a link to the PDF I created using Acrobat 9 that does not work. http://www.mmb580.com/docs/pdf/Regular.pdf If anyone has any insight has to why this PDF doesn't work but exporting to PDF/A does work that would be great. I'm assuming it is a feature conflict with Acrobat 9 and the version of GS I'm running.

Re: PDF to JPG created with Acrobat 9 Problem

Posted: 2010-07-30T14:43:34-07:00
by Drarakel
I have no problem with this file - with ImageMagick 6.6.3-1 and Ghostscript 8.71.
(By the way: If you have problems with some PDFs and can't update Ghostscript, then you could try a tool like pdftk. I have sometimes problems with an image extracting tool - that can't access every PDF. After simply copying the files with "pdftk file.pdf output file2.pdf", I can access these files, too.)