PDF conversion fails with 156 pages, but works with 30 pages
Posted: 2008-07-19T15:43:03-07:00
Hello,
I want to convert a PDF file with 156 pages (filesize: 46 mb) to JPGs. If I split up the PDF to 5 PDF files with each around 30 pages it works fine with every PDF, but not using the complete PDF. A 30 pages PDF takes aorund 10 seconds to be converted, the script for the complete PDF breaks after 7 seconds without having converted any JPG. I am using the command: exec("convert -colorspace rgb input.pdf output.jpg"); in a PHP file. The script per-process memory limit of php5 is 128 mb and the run time is a maximum of 10 minutes. Is there a limitation concerning filesizes or page amount?
Any help is much appreciated.
I want to convert a PDF file with 156 pages (filesize: 46 mb) to JPGs. If I split up the PDF to 5 PDF files with each around 30 pages it works fine with every PDF, but not using the complete PDF. A 30 pages PDF takes aorund 10 seconds to be converted, the script for the complete PDF breaks after 7 seconds without having converted any JPG. I am using the command: exec("convert -colorspace rgb input.pdf output.jpg"); in a PHP file. The script per-process memory limit of php5 is 128 mb and the run time is a maximum of 10 minutes. Is there a limitation concerning filesizes or page amount?
Any help is much appreciated.