Programmatically convert PDF to JPEG
I've been looking for a solution to this for a while now. So far I've been using ImageMagick's convert, and it works in many cases. But there are very many PDF files it can't read (or ghostscript can't read), or reads incorrectly.
Unfortunately I can't be more precise as to the reason why it fails, cause it mostly just breaks up without reason. And if the PDF is too big (filesize or pages, doesn't matter) ImageMagick uses literally gigabytes of memory and I usually kill it...
Basically what I'm looking for is a console application that can read all PDF files out there (which programs like Xpdf seem to be able to do) and convert them to JPEGs (and split them into many small PDFs, too, if possible). Is there anything like that? Or is there some way to force ghostscript to read all files?
TIA
|