Page 1 of 1

Mac OS X PDF's with images not converting to PNG

Posted: 2009-02-18T09:26:00-07:00
by Marcus
Hi,

when I create pdf's with images in Mac OS X Pages or Numbers, I can not convert these pdf's with ImageMagick.

Other PDF's are converting without any problems on my Server!!! And other PDF's (generated under Windows / Adobe) with images are also converting without any problems.

Code: Select all

[root@www folder]# convert xls_with_images.pdf xls_with_images.png
convert: Postscript delegate failed `xls_with_images.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.
convert: missing an image filename `xls_with_images.png' @ convert.c/ConvertImageCommand/2766.
My PDF has the following information: Mac OS X 10.5.6 Quartz PDFContext

If you want one of those PDF's, I will send you a copy.

Here my Versions:

Version: ImageMagick 6.4.9-4 2009-02-18 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

ESP Ghostscript 8.15.2 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.


Is there a trick to convert these PDF's also with ImageMagick? Any command line option? Or is this a bug?

You know: "It's not a bug, it's a feature!" :D

Thanks.

Marcus

Re: Mac OS X PDF's with images not converting to PNG

Posted: 2009-02-18T09:56:41-07:00
by magick
Post a URL to one of your PDF's that fail to convert properly. We need to download it and reproduce the problem before we can offer a solution.

Re: Mac OS X PDF's with images not converting to PNG

Posted: 2009-02-18T12:27:51-07:00
by Marcus
magick wrote:Post a URL to one of your PDF's that fail to convert properly. We need to download it and reproduce the problem before we can offer a solution.
Can I send you an email? Now, I don't have the opportunity to put the file on a webserver.

Marcus

Re: Mac OS X PDF's with images not converting to PNG

Posted: 2009-02-18T13:33:37-07:00
by magick
Just press the PM button to send us a private message.

Re: Mac OS X PDF's with images not converting to PNG

Posted: 2009-02-19T07:16:44-07:00
by magick
You may need to upgrade your version of Ghostscript. We're using Ghostscript 8.64 and ImageMagick 6.4.9-5 and the conversion worked as expected:
  • convert -colorspace rgb -density 400 xls_with_images.pdf -resize 25% xls_with_images.png