PDF Image Preview

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
tommy1987
Forum Commoner
Posts: 92
Joined: Tue Feb 21, 2006 8:35 pm

PDF Image Preview

Post by tommy1987 »

Hello,

I need to create the first page of a PDF document into an image to display on my website. What is the best way to this. I did look into the ImageMagick library since this is capable, but could not get it working. I tried the following:

Code: Select all

exec('convert “document.pdf[0]” -colorspace RGB -geometry 200 “document.png”');
 
However this gave the following error:

Code: Select all

PHP Warning: exec(): Unable to fork [convert “document.pdf[0]” -colorspace RGB -geometry 200 “document.png”]
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: PDF Image Preview

Post by Zoxive »

:google:

http://www.google.com/search?q=php+Unable+to+fork
Cause
The most likely cause is insufficient permissions to execute system calls in the web server environment.
Post Reply