Page 1 of 1

Grab mail address from PDF

Posted: Tue Mar 27, 2018 9:20 am
by haishi
Hello!

I'm looking for a way to grab an email adress from a pdf file (text is readable) and then have the PDF-file sent to that address.

I have no experience with scripting whatsoever, but i do have a script that does the address-grabbing (in acrobat).
Could someone please help me customising that script to my needs?

I would send the base script to a person really willing to assist me. But maybe this has already been done before?

Thank you and best regards,
Andreas

Re: Grab mail address from PDF

Posted: Tue Mar 27, 2018 4:05 pm
by Zoranj
How I would do it is convert PDF into txt file (I usually use Xpdf instead of Acrobat to do this job), than use Javascript to read file and pull email address, probably with Regular Expression.
Once you pull this email you can set it as private data and do whatever you want with it, including sending this pdf to that email address.

I hope this helps

Re: Grab mail address from PDF

Posted: Tue Mar 27, 2018 5:19 pm
by gabrielp
PDFSpy can also do this but it is a paid program.