Skip to content

How to Generate PDFs from Google Forms

Automatically generate personalized PDFs from Google Forms submissions. Connect Forms to Sheets, then trigger mail merge via API or Zapier.

Turning Google Forms Submissions into PDFs

Google Forms makes it easy to collect information — event registrations, applications, feedback, orders. But the responses sit in a spreadsheet. What if each submission could automatically produce a polished PDF — a certificate, receipt, ticket, or confirmation letter — and even email it to the submitter?

This guide shows you three ways to connect Google Forms to Mergram for PDF generation, from fully manual to fully automated.

How It Works

The workflow follows a simple pipeline:

Google Forms → Google Sheets → Mergram → PDF

Google Forms automatically saves every submission to a linked Google Sheet. Mergram reads that spreadsheet data and merges it into your PDF template. Automation platforms like Zapier connect the pieces to run the pipeline automatically.


Method 1: Manual — Google Sheets Integration

This method requires no automation tools. You collect responses, then generate PDFs on demand.

Step 1: Create Your Google Form

  1. Go to forms.google.com and create a form
  2. Add fields that correspond to your PDF template (name, email, date, etc.)
  3. Click the Responses tab, then click Link to Sheets
  4. Google creates a spreadsheet with columns matching your form fields

Use short, descriptive field names

Google Forms uses your question text as column headers in the spreadsheet. Keep names short and clear (e.g., “FirstName” instead of “What is your first name?”). This makes mapping easier in Mergram.

Step 2: Design Your PDF Template

  1. Upload a PDF template to the Mergram editor
  2. Place text fields where form data should appear
  3. Add any static elements (logo, header text, decorative borders)

Step 3: Connect Google Sheets

  1. In the editor, click Load Data and select Google Sheets
  2. Authorize Mergram to access your Google account
  3. Select the spreadsheet linked to your form
  4. Choose the correct sheet tab (usually “Form Responses 1”)

Step 4: Map Fields and Merge

  1. Drag spreadsheet columns onto the canvas to create mapped fields
  2. Preview with real submission data to verify accuracy
  3. Click Merge to generate PDFs for all rows

Refresh data before merging

Google Sheets data in Mergram reflects the spreadsheet at load time. If new form submissions arrive, click the refresh button in the data panel to pull the latest rows before merging.


Method 2: Automated via Zapier

For hands-off operation, connect Google Forms to Mergram using Zapier.

Step 1: Create the Template in Mergram

  1. Design and save your PDF template in Mergram
  2. Note the template ID (visible in the URL or via the API)
  3. Generate an API key in Developer → API Keys

Step 2: Set Up the Zapier Zap

  1. Trigger: Choose Google FormsNew Response in Spreadsheet
  2. Select your form and the linked spreadsheet

Step 3: Add the Mergram Action

  1. Action: Choose Webhooks by ZapierCustom Request
  2. Configure:
    • Method: POST
    • URL: https://mergram.com/api/v1/merge
    • Headers: Authorization: Bearer mg_your_api_key
    • Payload Type: JSON
  3. Build the data payload using form field values from the trigger:
{
  "templateId": "your-template-id",
  "data": [
    {
      "FirstName": "{{trigger.first_name}}",
      "Email": "{{trigger.email}}",
      "EventDate": "{{trigger.event_date}}"
    }
  ]
}

Step 4: Test and Activate

  1. Submit a test response through your Google Form
  2. Verify the Zap triggers and Mergram generates the PDF
  3. Turn on the Zap for live operation

Add email delivery

Add a follow-up step in Zapier to send the generated PDF via email. After the merge completes, use the Zapier email action to notify the submitter with a download link or send the PDF directly via Mergram’s email campaign.


Method 3: API Automation (For Developers)

For maximum control, build a custom integration using the Mergram REST API.

Architecture

Google Form → Google Sheets → Your Script → Mergram API → PDF

Implementation Steps

  1. Watch for new rows — Use the Google Sheets API to detect new form submissions (polling or push notifications)
  2. Send to Mergram — POST new row data to /api/v1/merge with your template ID
  3. Handle the response — Poll /api/v1/jobs/:id for completion status
  4. Distribute — Download the PDF or trigger an email send

Webhook alternatives

If you’re building a custom backend, consider using Google Apps Script to push new form submissions directly to your server, which then calls the Mergram API. This avoids polling and gives you real-time processing.


Common Use Cases

Form TypeGenerated PDFDistribution
Event registrationEvent ticket or confirmationEmail to registrant
Course enrollmentCertificate of enrollmentEmail + archive
Application formApplication confirmation letterEmail to applicant
Feedback surveySummary report with responsesInternal download
Order formReceipt or invoiceEmail to customer
Waiver / consentSigned consent PDFEmail + archive

Tips for Google Forms Workflows

  1. Validate form fields — Use Google Forms built-in validation (required fields, email format, number ranges) to ensure clean data before it reaches Mergram
  2. Include a timestamp column — Google Sheets automatically adds a timestamp. Map it to your PDF for a submission date
  3. Handle file upload fields carefully — Google Forms file uploads go to Google Drive, not the spreadsheet. You cannot directly merge uploaded files into your PDF template
  4. Test with real submissions — Before automating, manually process a few real form responses to verify field mapping and output quality
  5. Set up error notifications — In Zapier, configure a notification step for failed merges so you know when something goes wrong

Common Issues and Troubleshooting

Column headers don’t match: Google Forms may modify your question text (adding spaces, truncating long names). Check the actual column headers in the linked spreadsheet and adjust your Mergram field names accordingly.

New submissions not appearing: Click the refresh button in Mergram’s data panel to pull the latest rows from Google Sheets. For automated workflows, the API receives data directly — no refresh needed.

Zapier payload format errors: Ensure the JSON payload uses the correct column header names from your Mergram template, not the Google Form question text. They may differ.

PDF looks different from preview: Upload a custom font to Mergram that matches your template’s typography. The default Inter font may not match your template’s original styling.

Get Started

Create a Google Form linked to a spreadsheet, design your PDF template in the Mergram editor, and connect the two. Start with manual merging, then add Zapier automation when you’re ready for hands-off operation.

Step-by-step guide

  1. 1

    Create Google Form

    Build a Google Form with fields that map to your PDF template. Ensure responses are saved to a Google Sheet.

  2. 2

    Design PDF Template

    Upload a PDF template to Mergram and place text fields where form responses should appear.

  3. 3

    Connect Data Source

    Link the Google Sheet from your form to Mergram. Map each form field to a canvas field.

  4. 4

    Automate (Optional)

    Set up Zapier or Make.com to trigger PDF generation on each new form submission.

Frequently asked questions

Does Mergram integrate directly with Google Forms?
Mergram connects to Google Sheets, which Google Forms automatically populates. Set up your form to write to a spreadsheet, then connect that spreadsheet to Mergram. This indirect approach gives you full control over data formatting and cleanup before generating PDFs.
Can I generate a PDF automatically every time someone submits a form?
Yes. Use Zapier or Make.com to create an automation: Google Forms submission triggers a webhook call to the Mergram REST API, which generates and optionally emails the PDF. The entire process runs without manual intervention.
How long does it take to generate a PDF from a form submission?
Individual PDF generation typically completes in a few seconds. When triggered via API, the job returns a pending status and completes shortly after. Automated workflows can check status and download the result, or you can send the PDF directly via email.
Can I email the generated PDF to the person who filled out the form?
Yes. Include an email field in your Google Form, map it to the recipient address in your automation, and use Mergram's email campaign feature or SMTP integration to send the personalized PDF to the submitter automatically.
What types of PDFs can I generate from form data?
Any PDF that uses form data as variable text. Common examples include certificates, receipts, confirmation letters, event tickets, personalized reports, and application confirmations. The template design is entirely up to you.
Do I need coding skills to set this up?
No. The manual method (Google Forms → Sheets → Mergram editor) requires no code at all. For automation, Zapier and Make.com provide visual builders with no-code configuration. The REST API option is available if you prefer a code-based approach.

Ready to try it yourself?

Start merging PDFs in minutes — free account required, no credit card needed.

Related articles