amiref
amiref

Reputation: 3441

pdf to txt convertion in qt or c++

Hi How can I convert pdf to txt with qt ? if there isn't way to do this , Is there any library for c++ that convert pdf files to txt files ? thanks. My os is windows7 and my ide is visual studio 2008

Upvotes: 1

Views: 1747

Answers (2)

Lou Franco
Lou Franco

Reputation: 89232

Foxit sells their PDF code as a library. I use it, and it's great.

http://www.foxitsoftware.com/pdf/sdk/dll/

You may know them for their very popular free Acrobat Reader alternative.

Upvotes: 3

refro
refro

Reputation: 209

Not all pdf files contain text. When getting text from them you might need to use OCR. It is possible to build an printer driver for a virtual printer and get the text by capturing undocumented windows messages. To my knowledge there is no easy foolproof way to do this.

Upvotes: 0

Related Questions