Solved

Convert PDF to GIF/JPG using only PHP

Posted on 2004-09-08
6
1,944 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:Palamedes
  • 2
6 Comments
 
LVL 25

Expert Comment

by:Marcus Bointon
ID: 12014865
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
 
LVL 4

Author Comment

by:Palamedes
ID: 12018259
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
 
LVL 5

Accepted Solution

by:
Daij-Djan earned 25 total points
ID: 12033672
no way if you dont want to use imageMagick's convert
0
 
LVL 25

Assisted Solution

by:Marcus Bointon
Marcus Bointon earned 25 total points
ID: 12054870
You don't need to do the exec thing if you have the ImageMagick extension compiled in:

http://pecl.php.net/package/imagick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now