0
I have to read a PDF file using linguagem C
and seek a string
present in the file. However when pulling the file by function fopen
and display it on the screen, it appears all those encoded characters, in the same way when you open the PDF using a text editor, for example.
How do I decode the file and do the parse
correct to seek the string
? Is there a library, and if possible how to use it ?
Welcome to Stack Overflow, don’t forget to do the [tour]. Ideally, add the code you already tried to do to the question. This makes it easier for the community to help you. Useful links: How we should format questions and answers? and How to create a Minimum, Complete and Verifiable example
– Barbetta
You can extract the text contained in the PDF file to then parse. Look at this code.
– Lacobus