PDF Screengrab
Posted: 2013-11-21T01:11:43-07:00
I've been running the following code with no problems for a little while, but recently it's become a bit buggy.
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;
Any ideas or help appreciated. Our server is running the version 6.8.7-6.
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);