PDF to PNG

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
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

PDF to PNG

Post by vsambhe » 2017-01-30T05:57:39-07:00

Hi I am using convert command line utility to convert PDF to PNG. I am using the following command

CONVERT IG202.PDF -quality 100 F:\IG202.PNG

I am not getting proper clarity in the converted image. Its all blurred. Can anyone give me some feedback I need to keep it very clear in the converted image.

What options I am missing. I tried density but it did not help either.

Thanks,

Vijay

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

Re: PDF to PNG

Post by snibgo » 2017-01-30T06:19:05-07:00

Did you try "-density 600" (or similar) before the input PDF?
snibgo's IM pages: im.snibgo.com

vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe » 2017-01-30T08:14:13-07:00

I tried, it does not help. Is there a way I can send this pdf to you?

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

Re: PDF to PNG

Post by snibgo » 2017-01-30T08:32:44-07:00

You can put it online somewhere like dropbox.com and paste the URL here. I can't download files more than about 10 MB.
snibgo's IM pages: im.snibgo.com

vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe » 2017-01-30T09:01:17-07:00

Hi There

I have sent you the PM. Please check. I have uploaded on dropbox for you.

Thanks,

Vijay

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

Re: PDF to PNG

Post by snibgo » 2017-01-30T09:58:10-07:00

The PDF is a vector diagram with graphic lines, letters and numbers, and other characters.

With IM v6.9.5-3 and Ghostscript v9.19:

Code: Select all

convert -density 600 IG202.PDF out.png
This shows the graphics and characters as clearly as Adobe Reader. With 300, some fine detail is lost, but the writing is still clear.
snibgo's IM pages: im.snibgo.com

vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe » 2017-01-30T10:30:31-07:00

Uploaded the file on dropbox - The link is https://www.dropbox.com/s/kehjpa3bmdvfn ... 2.pdf?dl=0

vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe » 2017-01-30T10:35:06-07:00

Thanks. May be the flag quality was messing it for me then. Thanks for having a look at this.

Post Reply