The first thing to note is that we use the pdflib Tet library instead of the pdflib library. What I see on the Internet is that we use pdflib, which is wrong. Pdflib can only generate PDF files. Cannot be read. to read data, use the Tet library. The trial version is used here.
1. Visit the official websiteHttp://www.pdflib.com/download/tet/Download the C ++ support installation package:
Instructions on the official website:
Pdflib Tet can be evaluated without a license, but will only process PDF documents ents with up to 10 pages and 1 MB size unless a valid license key is applied.
2. Installation: C: \ Program Files \ pdflib \ Tet 4.1 32-bit
3. There is a CPP instance under c: \ Program Files \ pdflib \ Tet 4.1 32-bit \ bind \ CPP.
4. He can be used completely.CodeCreate a vs project, copy the following header files, implementation files, and library files, and you can create a project by yourself:
5. Use vs to create a console project. Remember to add the corresponding link library in the linker input in the project properties:
6. Specify an input PDF file and an output TXT file to execute the generatedProgramFile.