Convert PDF to GIF/JPG using only PHP

Hey gang,

How can I convert an automatically downloaded PDF file to GIF/JPG using only PHP?  

I'd prefer to not have to buy a PDF library if at all possible.  I know there are free PHPPDF libraries out there so that would be the way to go if at all possible.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Daij-DjanConnect With a Mentor Commented:
no way if you dont want to use imageMagick's convert
Marcus BointonCommented:
This thread should tell you what you need, and it doesn't need a PDF library (though it does require other, free, libraries):
PalamedesAuthor Commented:
I've looked into that method already and there is no way I am going to get that through my security people.   They wont allow the exec thing.  

So again, how can I convert it using only PHP (as per my question)?
Marcus BointonConnect With a Mentor Commented:
You don't need to do the exec thing if you have the ImageMagick extension compiled in:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.