pdf to image problem

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
iMohammad
Posts: 3
Joined: 2018-10-14T04:57:14-07:00
Authentication code: 1152

pdf to image problem

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: pdf to image problem

Post by fmw42 »

You need to install the Ghostscript delegate into your Imagemagick. Imagemagick cannot find Ghostscript.
iMohammad
Posts: 3
Joined: 2018-10-14T04:57:14-07:00
Authentication code: 1152

Re: pdf to image problem

Post 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 ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: pdf to image problem

Post 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%
iMohammad
Posts: 3
Joined: 2018-10-14T04:57:14-07:00
Authentication code: 1152

Re: pdf to image problem

Post 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
Post Reply