Can't convert one pdf to image (only 1 out of 100 pdf's)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
zutautas
Posts: 2
Joined: 2011-12-29T08:30:38-07:00
Authentication code: 8675308

Can't convert one pdf to image (only 1 out of 100 pdf's)

Post by zutautas »

Converted nearly 100 pdf's 1st pages to png's but can't do on this one, imagemagic provides blank(black on other formats) image. Would like to know if it's bad pdf or some bug? File size, name, structure looks similar to others. But some other pages of this pdf can be converted.
Code: convert "King Sturge Eur Office Mkt 10-08.pdf"[0] test.png
PDF: http://www.2shared.com/document/iLXSPEd ... t_10-.html
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Can't convert one pdf to image (only 1 out of 100 pdf's)

Post by magick »

We can reproduce the problem you posted and have a patch. Look for it in ImageMagick 6.7.4-3 Beta by sometime tomorrow.
zutautas
Posts: 2
Joined: 2011-12-29T08:30:38-07:00
Authentication code: 8675308

Re: Can't convert one pdf to image (only 1 out of 100 pdf's)

Post by zutautas »

Downloaded newest version 6.7.4-4 for windows and it generates image, but half of created file is blank or transparent depends on format.
Like this: http://www.2shared.com/photo/GBZPlRIY/test.html
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Can't convert one pdf to image (only 1 out of 100 pdf's)

Post by magick »

Your King Sturge Eur Office Mkt 10-08.pdf image defines the first page @ 1210x842 pixels rather the customary 612x792 (see MediaBox). The page size is defined by the PDF image, not ImageMagick. To confirm, type 'gs King Sturge Eur Office Mkt 10-08.pdf'.
Post Reply