문제

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

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

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. What's wrong with this PDFs and how to convert it right?

Note: Imagemagick V6.8.6.6, GhostScript 8.64.

도움이 되었습니까?

해결책

Upgrading your version of GhostScript should fix the problem. Ghostscript is responsible for creating an image from your PDF file. With the latest version (9.10) a correct image is created.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top