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
Screenshot of Sample PDF to Parse Email Address

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

Document Parser Configuration

Next, let’s configure the Document Parser.

Configure Document Parser Action
  • 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.

You can check out our template creation guide for this template below.

Zap Test & Review

Then, let’s send our Document Parser configuration to PDF.co to Test & Review.

Zap Test & Review

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

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

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

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

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

See Related Tutorials