Convert from PDF to raster format image

R

R.Marquez

Does any one know of a way to convert PDF documents into a raster
format, such as TIFF or JPEG? Of course to do it in Python would be
my preference, but if you know of another way to do this
programatically I would also be interested. Thanks.

-Ruben
 
K

Kyler Laird

Does any one know of a way to convert PDF documents into a raster
format, such as TIFF or JPEG? Of course to do it in Python would be
my preference, but if you know of another way to do this
programatically I would also be interested. Thanks.

I'm all for Pythonic solutions but from my experience your best bet
is to just use Ghostscript. It's easy to call it from Python.

--kyler
 
A

Andrew MacIntyre

Does any one know of a way to convert PDF documents into a raster
format, such as TIFF or JPEG? Of course to do it in Python would be
my preference, but if you know of another way to do this
programatically I would also be interested. Thanks.

Ghostscript?

If it can, on some platforms GS is built as a DLL or shared object, with a
defined API. The ctypes module might be able to let you drive this;
failing that, os.system() would work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top