In this tutorial, we will show you how you can parse a PDF document and email the parsed data using PDF.co, Gmail, and Integromat. We will use this sample PDF Invoice and parse the Invoice Number, Invoice Date, Client Name, Subtotal, Sales Tax, and Total.

  1. Select “Parse a Document” in PDF.co
  2. Configure the Module
  3. Run the Module
  4. Select the “Send Email” Module on Gmail
  5. Set Up Gmail’s Send Email Module
  6. Check the Result
  7. Send Gmail Emails with Data from PDF – Video

Sample PDF Invoice To Parse Data
Screenshot of Sample PDF Invoice

1. Select “Parse a Document” in PDF.co

First, let’s create a Scenario in Integromat. Choose the Parse a Document in the PDF.co module.

Choose Parse A Document Module In PDF.co

2. Configure the Module

Next, let’s configure the Parse a Document module.

  • In the Input File field, select the Import a File From URL.
  • In the Url field, enter the source file link. To follow along, you can use this link to try the sample PDF Invoice.
  • In the Document Parser Template ID field, enter the Template ID. You can find it in the PDF.co Document Parser Page.

Configure PDF.co Parse A Document Module

3. Run the Module

Then, let’s run the module and we should see the extracted PDF data in the result.

PDF.co Parse A Document Module Result

4. Select the “Send Email” Module on Gmail

Now that we have our needed parsed data ready. Let’s choose Gmail and the Send an email module.

Use Gmail To Send Parsed Data

5. Set Up Gmail’s Send Email Module

Next, let’s set up the Gmail Send an email module.

  • First, check the Show advanced settings check box.
  • In the From field, enter the email address you’d like to send the email from.
  • In the To field, enter the recipient’s email address.
  • In the Subject field, let’s use the Client Name to easily distinguish the emails.
  • In the Content field, type in the email body with the corresponding parsed PDF data.

Add Gmail Module's To And From Email Addresses
Setup Gmail With Parsed PDF Data

6. Check the Result

Let’s run the Scenario and when it processes our requests successfully, Gmail will return a Message-ID.

Gmail Send Email Module Result

This is what the email looks like inside the recipient’s inbox.

PDF.co And Gmail Scenario Result
Screenshot of Recipient’s Gmail Inbox

The email body can also be formatted using raw HTML code.

In this tutorial, we learned how to parse a PDF document using the PDF.co Parse a Document module. We also learned how to add the parsed data in the email and send it via Gmail.

Send Gmail Emails with Data from PDF – Video


 

Related Pages:

Related Samples: