I've got a problem / bugg when I'm trying to export pages from a PDF to JPEG.
When I open the PDF file in a reader, every thing looks fine.
All the pages are properly numbered.
Now whene I try to export the first couple of pages, lets say 10, I end up with 3 images :
page0.jpg,page4.jpg an page8.jpg
The rest of the pages isn't exported
page0.jp is the first page of the PDF,
page4.jp is the second page of the PDF,
page8.jp is the third page of the PDF.
I use this code.
ps. When I export the hole PDF the file numbering is also messed up ( up to page140.jpg while the PDF has only 36 pages)
Code: Select all
exec('convert -density 200x200 -thumbnail 300x mypdf.pdf[0-10] page.jpg');
Cheer and take care.