Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Convert PDF to GIF/JPG using only PHP

Posted on 2004-09-08
6
Medium Priority
?
1,986 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
4 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 100 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 100 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 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