PDA

View Full Version : Read PDF



dorians58
9th September 2010, 18:55
Hi all;

Is there any way to read the content of pdf file in QT?

Thanks

squidge
9th September 2010, 19:11
That depends on what you are trying to retrieve from the file

dorians58
9th September 2010, 19:16
For example I want to retrieve text or image? How can I do that?

wysota
9th September 2010, 22:13
There is no easy way to do that. You'd have to parse the PDF file yourself or interface with applications such as Adobe Acrobat that would do it for you.

MTK358
9th September 2010, 22:17
Don't know if this can help:

http://en.wikipedia.org/wiki/Poppler_(software)

wysota
9th September 2010, 22:51
From what I remember poppler is too limited to return things such as images although you could try with Poppler::EmbeddedFile (http://people.freedesktop.org/~aacid/docs/qt4/classPoppler_1_1EmbeddedFile.html).

MTK358
9th September 2010, 22:52
I never wrote anything using Poppler myself, I just suggested it thinking it might me useful.

wysota
9th September 2010, 23:02
I did but I was only rendering PDF files to images to provide a pdf backend for QImageLoader.