Generate PDFs from Airtable Records Using the PDF.co PDF Generator Extension
The PDF.co PDF Generator is an Airtable extension that creates PDFs from Airtable records and a reusable PDF.co HTML template. The generated documents are saved in an Airtable attachment field.
Prerequisites
You will need:
- An Airtable base containing the document data
- Permission to install extensions in that base
- A PDF.co account and API key
- A PDF.co HTML template
- An attachment field for the generated PDFs
Use simple Airtable field names such as customer_name, invoice_number, and total to make template mapping easier.
Step 1: Create the HTML Template
- Sign in to PDF.co.
- Open the PDF.co HTML Template Manager.
- Create a new template or edit an existing one.
- Add placeholders corresponding to the Airtable fields. For example:
<h1>Invoice {{invoice_number}}</h1>
<p>Customer: {{customer_name}}</p>
<p>Total: {{total}}</p>- Save the template.
- Copy its Template ID.
Step 2: Prepare Airtable
Open the table containing the records you want to convert.
Confirm that:
- The table contains values for each template placeholder.
- Each record contains all required information.
- The table has an attachment field, such as Generated PDF, for the output.
Step 3: Install PDF.co PDF Generator
- Open the PDF.co PDF Generator listing in the Airtable Marketplace.
- Select Add or Add extension.
- Choose the Airtable base where the extension should be installed.
- Complete the installation.
Airtable previously called these tools “blocks.” They are now called extensions.
Step 4: Configure the Extension
Open the PDF.co PDF Generator extension and provide:
- PDF.co API Key: Copy the key from your PDF.co account.
- Table: Select the table containing the source records.
- Template ID: Enter the ID copied from the PDF.co HTML Template Manager.
- Output PDF Field: Select the Airtable attachment field where generated PDFs should be stored.
Save the settings.
Step 5: Generate the PDFs
Run the extension.
PDF.co will populate the HTML template with the Airtable record data, generate the PDF files, and add them to the selected attachment field.
Open a generated PDF and confirm that:
- Airtable values replaced the correct placeholders.
- The document formatting is correct.
- Each PDF is attached to the appropriate record.
You can update the HTML template in PDF.co whenever the document layout or branding needs to change.
Related Tutorials

