PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD] PDF Data Extraction and saving file
[WD] PDF Data Extraction and saving file
Débuté par Gianni Spano, 23 mar. 2018 13:52 - 2 réponses
Posté le 23 mars 2018 - 13:52
Hello to all

I have about 1000 pdf files and each filename is like "CU2018_1.pdf", "CU2018_2.pdf" and so on for the rest.
Each filename has in a specific position in the 1st page of each pdf, a fiscal code to recognize the person name.
What i would try to do is to read this fiscal code and save (or rename) the file using this information, like SPNGNN56T08G015-2018.pdf.
Of course the fiscal code (i.e. SPNGNN56T08G015D) is printed at the same position in each pdf file.

Is there a library or some tools that allow me to extract the fiscal code passing the coordinates where it is located inside the pdf file??

Thanks in advance
Gianni
Posté le 23 mars 2018 - 15:45
I never done it but probably you can achieve this using the PDFToText function and some lines of code to extract the fiscal code from the string.

https://doc.windev.com/en-US/index.awp…
Posté le 23 mars 2018 - 22:50
Hello Paulo

Yes...this is the easy way...with a few lines of code to find the fiscal code inside the extracted text from the pdf file.

Thanks for your help

Gianni