2

I need to create a C++ program which parse info from a PDF file. So, I guess, the first step is to find a good, easy-to-use library. I've already searched on google, but I only found stuff for Linux or outdated/not functioning libraries.

Can you recommend me a good free library ? I don't need many functions, I just need to extract info from a PDF file.

3
  • What kind of info are you looking to parse/extract from a PDF?
    – Ryan
    Commented Sep 21, 2020 at 16:59
  • text strings, something like "Name: <name>; Address: <address>; etc ..." Commented Sep 22, 2020 at 8:16
  • Do you really need it to be C++? Couldn't it be in another language and output the information in another format? Commented Jan 13, 2022 at 22:16

2 Answers 2

1

PoDoFo is a library to work with the PDF file format. The name comes from the first letter of PDF (Portable Document Format). A few tools to work with PDF files are already included in the PoDoFo package.

The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. The changes can be written back to disk easily. The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). Besides parsing PoDoFo includes also very simple classes to create your own PDF files. All classes are documented so it is easy to start writing your own application using PoDoFo.

PoDoFo is written in C++ and the code was sucessfully compiled under Unix, Mac OS X and Windows.

0

Spire.PDF for C++ library is designed for manipulating PDF documents within C++ applications. It enables developers to create, read, and edit PDF files without relying on Adobe Acrobat or any other external software. Additionally, the library supports converting PDFs into various file formats, including Image, Word, Excel, PDF/A, SVG, and more.

Here is the documentation on text and image extraction from PDFs for your reference: C++: Extract Text and Images from PDF

Disclaimer: I am an employee of the company that developed this library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.