New: PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

Extract an Email Address from a PDF Using PDF.co and Zapier

Use PDF.co’s Document Parser to extract an email address from a PDF and pass it to another app through Zapier. This example uses a reusable template for documents where the email address appears in the same location.

Step 1: Create a Document Parser Template

Open the Document Parser Template Editor, create a template, and load a sample PDF.

Add a Field from Rectangle Selection, name it Email, and draw a rectangle around the area containing the email address.

To extract the address without surrounding text, enable Regex and enter this expression:

[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}

This expression matches common email address formats. Test the template, check the extracted value, and save it. Copy the template ID for use in Zapier.

For more information, see the Document Parser template creation guide.

Step 2: Set Up the PDF Trigger

Create a Zap and choose the app that supplies your PDF files.

For example, select Google Drive with the New File in Folder trigger. Connect your account, choose a folder containing incoming PDFs, and test the trigger to load a sample file.

Step 3: Configure PDF.co Document Parser

Add PDF.co as the next app and select Document Parser. Connect your PDF.co account through the OAuth sign-in window.

Configure these fields:

  • Document URL: Map the PDF file from the trigger. For Google Drive, use the File output.
  • Template Id: Enter the ID of your saved template.
  • Custom Profiles: Leave blank for this example.

Test the action and locate the extracted Email value in the returned parsing results. See the Document Parser action documentation for its settings.

Step 4: Use the Extracted Email Address

Add a destination action, such as Google Sheets → Create Spreadsheet Row, and map the extracted email address to the appropriate column.

Test the destination action, confirm that the correct address is saved, and publish your Zap.

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.

Related Tutorials

See Related Tutorials