Solved

Convert PDF to GIF/JPG using only PHP

Posted on 2004-09-08
6
1,942 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:Squinky
Comment Utility
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
Comment Utility
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
Comment Utility
no way if you dont want to use imageMagick's convert
0
 
LVL 25

Assisted Solution

by:Squinky
Squinky earned 25 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

7 Experts available now in Live!

Get 1:1 Help Now