문제

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