views:

318

answers:

2

I'm attempting to convert a PDF to a JPEG using ImageMagick.

The PDF: baby_aRCWTU.pdf

The command: convert -density 260 -profile 'SWOP.icc' -profile 'sRGB.icm' 'baby_aRCWTU.pdf' 'baby_aRCWTU.jpg'

The resulting JPEG: baby_aRCWTU.jpg

As you can see, the text is rendered nicely, but the embedded image shows up as a green square. Any ideas? This occurs with and without the colour profiles.

edit: reposted due to broken links

+1  A: 

On a site we convert hundreds of PDF's on a daily basis where we need to create JPGs and we found it only reliable to convert the PDF's to postscript first.

We use the "pdftops" command, try

pdftops baby_aRCWTU.pdf baby_aRCWTU.ps

then your convert command above, but on the ps. Works for me, the image is then included.

initall
I'm having a similar problem. Is there a good equivalent to pdftops available for Windows?
BlairHippo
Disclaimer (I work for Atalasoft) -- For Windows (.NET) Our PDF Reader add-on to DotImage can convert PDF to any image type http://atalasoft.com/products/dotimage
Lou Franco
A: 

It works for me perfectly! Thanks guys!

Jeff