Some PDFs are converted improperly

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
_gefest
Posts: 2
Joined: 2014-02-14T00:58:06-07:00
Authentication code: 6789

Some PDFs are converted improperly

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Some PDFs are converted improperly

Post by dlemstra »

Can you upgrade your version of Ghostscript to the latest version?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
_gefest
Posts: 2
Joined: 2014-02-14T00:58:06-07:00
Authentication code: 6789

Re: Some PDFs are converted improperly

Post 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?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Some PDFs are converted improperly

Post by dlemstra »

Ghostscript creates an image from the PDF. Upgrading your version of Ghostscript probably fixed a bug while reading the image.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply