It should take a grab of the first page of a PDF and creating a JPG for it. It works with some PDFs but not others and I can't work out why.
My code;
Code: Select all
exec("/usr/bin/convert 'sample.pdf' -thumbnail 200 'output.jpg' 2>&1", $array);
Code: Select all
exec("/usr/bin/convert 'sample.pdf' -thumbnail 200 'output.jpg' 2>&1", $array);