質問

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!

役に立ちましたか?

解決

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.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top