You can check out our template creation guide for this template below.
How to Extract Email Address in PDF using PDF.co and Zapier
In this tutorial, we will show you how to parse an email address in a PDF using the PDF.co Document Parser and Zapier. We will use this sample PDF and parse the only email address that is added to it.
![Sample Source PDF To Parser Email Address](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F620914c67b16cfe251e98db63d98d4f59f356458-824x630.png&w=1920&q=75)
Parse an Email Address into PDF – Step by Step Guide
Set Up Zapier Action
First, let’s set up the Zapier action. Let’s choose PDF.co as the App and the Document Parser as the Action Event.
![Set up Zapier Action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F0680d398742cbfef79df59faa73dfe87b5dfec8e-885x433.png&w=1920&q=75)
Document Parser Configuration
Next, let’s configure the Document Parser.
![Configure Document Parser Action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fb415afe43cef28d3d07979181ea41e1c66ae1464-882x409.png&w=1920&q=75)
- In the Input field, enter or select the link to the PDF source file.
- In the Template Id field, enter the Template Id that you made to parse the email address. After you have created the template, you can get the Id from the Document Parser Template Manager.
Zap Test & Review
Then, let’s send our Document Parser configuration to PDF.co to Test & Review.
![Zap Test & Review](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F571b36d056f04516902ab8512a75708a445c9983-887x506.png&w=1920&q=75)
Parsed Email Address Output
Great! We have successfully parsed the email address from the PDF. PDF.co returned the value that you can use in your next action.
![PDF.co Document Parser Email Extraction Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F44f93ed2753ec63f744afd6bcda1b37351298621-712x537.png&w=1920&q=75)
Create the Email Address Parser Template
In the PDF.co Document Parser Online Template Editor, click on the Load Test PDF or Image and select the PDF document.
Then, click on the +Add Object button and select the Add FIELD from RECTANGLE selection. This will allow us to select a specific area where we want to extract the email address. Resize the rectangle to fit the selection area.
![Add Rectangle Object In Email Address Selection Area](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F4afd02941e4e62e5469050de829d163a171d6c3f-1231x635.png&w=3840&q=75)
In the Expression field, enter this Regex to extract the email address [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
and tick off the Regex check box.
![Add Regex In the Expression To Parse Email Address](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F5b51e89ab10e1049e60c5bc06c75b6d2e72a83b4-853x571.png&w=1920&q=75)
Run the template to see the result. Then click on the Save Template and Return button to get the Template Id.
![Parse Email Address Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Febca6b715efb20ee5226dd0f62b14be1d53b17cf-1037x523.png&w=3840&q=75)
In this tutorial, we learned how to set up the PDF.co Document in PDF.co to parse an email address from a PDF file. We also learned how to create a template to extract an email address in a specific area.
Video Guide
Related Tutorials
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)