Solved

Convert PDF to GIF/JPG using only PHP

Posted on 2004-09-08
6
1,954 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress Query 5 47
Showing multiple maps using PHP and Google Maps 12 42
Delete image(s) associated with record(s) 16 29
How do I speed up this PDO query 4 15
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will learn how to count occurrences of each item in an array.

730 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