Page 1 of 1

Some PDFs are converted improperly

Posted: 2014-02-14T01:33:34-07:00
by _gefest
Hello colleagues.

I faced with following problem with using ImageMagic. I have Java EE web application which need to make some thumbnails from uploaded PDFs. 3rd patry application uploads PDFs to my application.

My application tryes to convert this (and others) PDF via following command

Code: Select all

convert some.pdf  -auto-orient -resize 100x100> some.png
As result of convertation I have this PNG. I'm trying for 3 days but wasn't able to figure out whats wrong with uploaded PDFs. Other PDFs is converted in correct way. Could you give me advice whats wrong with this PDFs and how to convert it right.

Note: Imagemagick V6.8.6.6, GhostScript 8.64.

Thanks in advanse.

Re: Some PDFs are converted improperly

Posted: 2014-02-14T01:54:38-07:00
by dlemstra
Can you upgrade your version of Ghostscript to the latest version?

Re: Some PDFs are converted improperly

Posted: 2014-02-14T02:41:30-07:00
by _gefest
Yes. I've upgrade GS to 9.10 and converting is OK. Thanks a lot :) Can the issue be solved without GS upgrading? I just curious what is wrong with this PDF?

Re: Some PDFs are converted improperly

Posted: 2014-02-14T04:24:17-07:00
by dlemstra
Ghostscript creates an image from the PDF. Upgrading your version of Ghostscript probably fixed a bug while reading the image.