Hello,

Please let me know if this is not the appropriate place for this inquiry.

I am receiving mysterious ioerror failures when using ImageMagick 6.3.6
on Linux to convert certain PDFs to a choice image format. The
"mysterious" part for me is that using Ghostscript directly to convert
PDF does not cause issue an ioerror. I am using Ghostscript 8.60.

I have debugged this somewhat. I have fiddled in coders/pdf.c and
particularly InvokePostscriptDelegate(...). Here's what I have found,

 1) If I force InvokePostscriptDelegate to issue a SystemCommand() for
ghostscript instead of using gsapi (which is the fallback if gsapi isn't
available), the conversion is a success.
 2) I have copied the code from InvokePostscriptDelegate to a small
test environment, in order to try the library call myself in a more
controlled environment. This works without a problem.

I am at a loss as to where to go from here. It confuses me that my gsapi
test environment does not cause ghostscript to barf on the PDF, but the
call from ImageMagick does.

Any ideas?

Some files to support what I have written above,

  Sample PDF: http://www.doublemarked.com/sandbox/sample.pdf
  ioerror message: http://www.doublemarked.com/sandbox/ioerror.txt
  My gsapi test code: http://www.doublemarked.com/sandbox/gst.c.txt

The sample PDF above is something received "in the wild". I have several
dozen of these that will convert through Ghostscript directly (or
through ImageMagick on Windows) but will fail with an ioerror when using
ImageMagick on Linux.

I appreciate any advice I can receive from this list. Thank you for your
time!

-Heath Morrison

_______________________________________________
Magick-developers mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to