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.

Thanks.
LVL 4
PalamedesAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Daij-DjanConnect With a Mentor Commented:
no way if you dont want to use imageMagick's convert
0
 
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):

http://answers.google.com/answers/threadview?id=134543
0
 
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)?
0
 
Marcus BointonConnect With a Mentor Commented:
You don't need to do the exec thing if you have the ImageMagick extension compiled in:

http://pecl.php.net/package/imagick
0
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.