Question

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!

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top