Grab mail address from PDF

Post Reply
haishi
Newbie
Posts: 1
Joined: Tue Mar 27, 2018 9:12 am

Grab mail address from PDF

Post 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
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Grab mail address from PDF

Post 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
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Grab mail address from PDF

Post by gabrielp »

PDFSpy can also do this but it is a paid program.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply