Theres a way, using PHP exec and Image MagicK, to get the first PDF page and convert it to JPG?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are many search results on SO already.
You have the choice between two duplicates:
ImageMagick/Imagick convert PDF to JPG using native PHP API using the PHP IM bindings
Imagemagick convert pdf to png using the command line.
Note that for this to work, you need Ghostscript installed along with ImageMagick. (I think this usually is the case.)