Pregunta

the heading says it all actually:

i want to convert a pdf file into several jpg images. This is to be a part of a software coded in c++ (I'm using Qt for my interface if that matters... :)

Preferably i want the images output to be 72 dpi.

Is there a easy way to do this?

Please comment if you need any more information form me, I'm grateful for any help, tips or answer!

¿Fue útil?

Solución

Take pdf2image utility, and run it from you program, collecting its output files.

If you really need single executable (why?) — take a look at its source, and rip everything from it.

Otros consejos

You should try to use poppler (or xpdf). You'll have full control of the rendering resolution and can take advantage of image output devices (ImageOutputDev) which will render pages to a framebuffer.Saving this framebuffer to jpeg with libjpeg is ,then , pretty straightforward.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top