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

Generate PDFs from HubSpot Contact Data Using PDF.co and Zapier

4 Minutes Read

Automatically generate a PDF contact report whenever someone is added to a selected HubSpot list.

You’ll need Zapier, PDF.co, and a HubSpot account that supports the New Contact in List trigger.

Step 1: Set Up the HubSpot Trigger

Create a Zap and select HubSpot → New Contact in List.

Connect your HubSpot account and select the Contact List to monitor. Test the trigger and choose a sample contact containing the information you want in the PDF, such as first name, last name, email, and phone number.

This trigger runs when a contact joins the selected list. See HubSpot’s supported Zapier trigger.

Step 2: Add HTML to PDF Converter

Add PDF.co → HTML to PDF Converter and connect your PDF.co account through OAuth.

In HTML or URL Input, paste the following HTML:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Contact Report</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      color: #222;
      padding: 24px;
    }
    h1 { color: #245580; }
    p { margin: 12px 0; }
  </style>
</head>
<body>
  <h1>Contact Report</h1>
  <p><strong>Name:</strong> FIRST_NAME LAST_NAME</p>
  <p><strong>Email:</strong> EMAIL_ADDRESS</p>
  <p><strong>Phone:</strong> PHONE_NUMBER</p>
</body>
</html>

Replace each uppercase placeholder with its corresponding HubSpot field using Zapier’s data selector. Insert the mapped fields directly into the HTML.

Step 3: Configure the PDF Settings

Set the remaining options:

  • HTML Template ID: Leave blank.
  • Page Orientation: Portrait.
  • Page Size: A4, or your preferred size.
  • Media Type: Print.
  • Name: Enter contact-report.pdf, optionally including the contact’s ID for a unique filename.

See the HTML to PDF action documentation for additional formatting options.

Step 4: Test and Publish

Test the PDF.co action and open its returned url. Confirm that the contact’s details appear correctly and the layout meets your needs.

For permanent storage, add a Google Drive or Dropbox upload action and map the PDF.co output URL into its file input. PDF.co’s generated download link is temporary.

Publish the Zap. Each contact added to the monitored list will generate a separate PDF report.

This is just one of many tutorials we have on generating PDFs using data from other files and digital forms using PDF.co and Zapier:

Related Tutorials

See Related Tutorials