Welcome! Log In Create A New Profile

Advanced

[WD] PDF Data Extraction and saving file

Posted by Gianni Spano 
Gianni Spano
[WD] PDF Data Extraction and saving file
March 23, 2018 01:52PM
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
Paulo Oliveira
Re: [WD] PDF Data Extraction and saving file
March 23, 2018 03:45PM
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.

[doc.windev.com]
Gianni Spano
Re: [WD] PDF Data Extraction and saving file
March 23, 2018 10:50PM
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



Edited 1 time(s). Last edit at 03/23/2018 10:51PM by Gianni Spano.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: