PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How read data from pdf file
How read data from pdf file
Iniciado por guest, 12,nov. 2015 23:10 - 5 respuestas
Publicado el 12,noviembre 2015 - 23:10
Hello to all

I'm finding a solution on how to read data from a pdf file.
I will try to explain better.

I have a pdf file that contains editable fields like surname, name, address, fiscal code, etc etc.
What i'm trying to do is how to retrieve all the values inserted by a web user when he download and fill the pdf file.

Once the pdf file is edited, the user can send it as an attachement using a specific e-mail address and then we have to read the "data" he stores in the pdf file.

Any idea on how to solve this problem?
Thanks in advance.
Regards

Gianni
Publicado el 13,noviembre 2015 - 00:13
Hi Gianni,

How about making a web screen with all the necessary fields and then

Have a "submit button" that will -

1. Save the fields into a data base with a unique key
2. generate the pdf file for the user and email it back to them
3. generate a duplicate pdf on your server for security / validation purposes.

When you want to get at the relevant data, you can read the database using a search query.

Hope it helps,

Mike
Publicado el 13,noviembre 2015 - 15:37
Hi Gianni

the easy way, -IF- it works:
do a pdtotext of the file and look at the result. If there are enough tags/identifier so that your know what value is coming from there, it's just text extraction...

if not, then you need to use one of the many pdf tools on the market that are able to do that, write in those fields, etc

Best regards
Publicado el 13,noviembre 2015 - 21:47
Hi Gianni

You can do what you want from within Acrobat Pro in the gui or scripted.

You can also turn to others as Fabrice recommended.

I stumbled upon a tool (http://www.a-pdf.com/form-data-extractor/) a while back that allows you to set profiles/data maps for the desired fields and then process them via gui or cli to csv or xml.

May be worth a look.

Eric W
Publicado el 14,noviembre 2015 - 18:52
Thanks to all for the suggestions

Gianni
Publicado el 18,noviembre 2015 - 15:43