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”');
Code: Select all
PHP Warning: exec(): Unable to fork [convert “document.pdf[0]” -colorspace RGB -geometry 200 “document.png”]