Convert to image doesnt work on one of the page

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
txt23
Posts: 3
Joined: 2017-10-25T22:43:03-07:00
Authentication code: 1151

Convert to image doesnt work on one of the page

Post by txt23 » 2017-10-25T22:45:42-07:00

We are trying to convert a PDF into image and first page looked like this

https://i.imgur.com/vV9Z2QH.png

But remaining pages looked just fine. WHat could have caused this?

User avatar
fmw42
Posts: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Convert to image doesnt work on one of the page

Post by fmw42 » 2017-10-25T22:50:31-07:00

Please provide your input PDF and which version of Ghostscript you are using.

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620

For novices, see

viewtopic.php?f=1&t=9620
http://http://www.imagemagick.org/scrip ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/

snibgo
Posts: 9378
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert to image doesnt work on one of the page

Post by snibgo » 2017-10-25T22:51:37-07:00

Perhaps the PDF uses a font that isn't embedded in the document, and isn't installed on your computer. Perhaps Adobe Reader will show the problem.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Convert to image doesnt work on one of the page

Post by fmw42 » 2017-10-25T22:52:31-07:00

Does it work if you use plain ImageMagick in command line mode and not Imagick?

txt23
Posts: 3
Joined: 2017-10-25T22:43:03-07:00
Authentication code: 1151

Re: Convert to image doesnt work on one of the page

Post by txt23 » 2017-10-25T22:55:21-07:00

Im thinking its the fonts but let me check both if it works on the command line and also will check with Adobe Reader to check on it as well.

Thanks for the quick response guys!

txt23
Posts: 3
Joined: 2017-10-25T22:43:03-07:00
Authentication code: 1151

Re: Convert to image doesnt work on one of the page

Post by txt23 » 2017-10-25T23:00:58-07:00

Hey guys. Turns out issue is related to fonts. If those fonts do not exist in our system, I am assuming ImageMagick would never be able to do convert it correctly. In this case, should I try to load as many fonts as possible in imagemagick (not sure actually how to do this!) and hope for the best or is there any work-around to this?

snibgo
Posts: 9378
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert to image doesnt work on one of the page

Post by snibgo » 2017-10-25T23:38:18-07:00

Doesn't Adobe Reader tell you what fonts are needed?
snibgo's IM pages: im.snibgo.com

Post Reply