Is it possible to convert pdf to image without imagick.

Recommended Answers

All 2 Replies

If you want to convert PDFs on your website into images, you don't need iMagick. You do need to have GhostScript or some other PostScript/PDF engine on the server and you can send commands to GhostScript using PHP with exec() or passthru().

But if you have ImageMagick installed on the server, you can use it to create images from PDFs even if you don't have the iMagick library installed. ImageMagick relies on GhostScript for the conversion, so it must be installed on the server. But, you can send 'convert' commands to ImageMagick with PHP with exec() or passthru(). There are some potential system resource issues if you're working with a large number of PDFs, but its not usually a problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.