How should I convert pdf file into image (.jpg, .gif etc) using ImageMagick on c# programming platform? or is there any third party library aside from ImageMagick that can be used to do this?
How should I convert pdf file into image (.jpg, .gif etc) using ImageMagick on
Share
Ghostscript can read PDF (as well as PostScript and EPS) and convert it to many different image formats.
*BTW, ImageMagick cannot do that itself — ImageMagick also utilizes Ghostscript for exactly that conversion as an external ‘delegate’. ImageMagick is great for continuing to process and manipulate image files — at which jobs it really excels!
The command
gs -h(or on Windows:gswin32c.exe -h) should give you an overview about the different devices that are built into your Ghostscript:So, to create a series of PNGs from the multipage PDF my_pdf.pdf with a certain image size (I chose DIN A4 paper format at 72 dpi) and resolution, use the pngalpha device. Try this command: