Page 1 of 1

pdf to image problem

Posted: 2018-10-16T22:55:14-07:00
by iMohammad
hi
i have a problem . i wanna convert a pdf file to png ... i search in web and use many commands.... but i don't convert file . do i need install adding file/ lib ?
// i using this code:
magick convert 01.pdf 01.png

myOS: win8.1
IM: 7.0.8


Image
Thanks

Re: pdf to image problem

Posted: 2018-10-16T23:19:03-07:00
by fmw42
You need to install the Ghostscript delegate into your Imagemagick. Imagemagick cannot find Ghostscript.

Re: pdf to image problem

Posted: 2018-10-16T23:31:13-07:00
by iMohammad
fmw42 wrote: 2018-10-16T23:19:03-07:00 You need to install the Ghostscript delegate into your Imagemagick. Imagemagick cannot find Ghostscript.
Thank Fred
convert is complete but quality of final image is very low
do you have any idea ?

Re: pdf to image problem

Posted: 2018-10-16T23:43:14-07:00
by fmw42

Code: Select all

magick -density 288 convert 01.pdf -resize 25% 01.png
Nominal density is 72. So 72*4=288 and thus I resize by the inverse of 4 = 1/4 = 25%

Re: pdf to image problem

Posted: 2018-10-16T23:53:35-07:00
by iMohammad
fmw42 wrote: 2018-10-16T23:43:14-07:00

Code: Select all

magick -density 288 convert 01.pdf -resize 25% 01.png
Nominal density is 72. So 72*4=288 and thus I resize by the inverse of 4 = 1/4 = 25%
Thank you.
it's worked