Skip to main content

Pdf Form template in Make

The Pdf Form family is a Make Generate Document Single option that fills the named fields of a fillable PDF (an AcroForm) with your data and returns the completed PDF. Choose it when you have a fixed-layout regulatory or government form that cannot be redesigned as a Word template but still needs automated data entry.

Before You Start

Fillable PDF with named form fields
The sample template.pdf is an AcroForm with named fields. Each key in your data file maps to a form field of the same name; unmatched fields stay blank.
Matching data file
Use formdata.json (recommended), test.xml, or test.csv. Keys map one-to-one to the form field names.
PDF4me connection in Make
Create a PDF4me connection in Make and paste your API key. The same key works across every PDF4me module in your scenario.

Sample File Pack

Download the files below. One PDF form template plus matching data in JSON, XML, and CSV.

Make PDF4me Generate Document Using Template module showing Connection, Template Name set to sample template from the PDF4me repository, Document Data Type Json, Document Data Text empty, Document Data File mapped from prior step 2. Data, and Meta Data Json empty

Target configuration: PDF4me PDF Template + form JSON in Document Data Text + PDF output.

What is the Pdf Form template template in Make?

The Pdf Form family performs form-field replacement on a fillable PDF. Instead of a layout with mustache tags, the PDF carries named AcroForm fields, and the module writes your data values into those fields. The output is the same PDF with every matched field completed, ideal for standardized forms.

How do I configure Pdf Form template in Make?

Set the module fields as below. Required fields are marked with a red asterisk in the Make UI.

ParameterRequiredWhat it doesExample
ConnectionRequiredPDF4me connection for the scenario. Click Add to create one with your API key.My PDF4me connection
Template File TypeRequiredSet to PDF4me PDF Template for this template family.PDF4me PDF Template
Output TypeRequiredFormat of the generated document. PDF is the output for a form-fill template.PDF
Template NameRequiredTemplate file name including extension. Map from the prior module file name output.template.pdf
TemplateRequiredTemplate file binary. Map from the prior module data output (for example 1. Data from Dropbox Download a File).1. Data
Document DataTypeRequiredChoose Json for JSON payloads (most common) or Xml when the upstream system returns XML.Json
Document Data TextConditionalInline JSON or XML data. Use when Document Data File is empty.formdata.json
Document Data FileConditionalMapped data file from a prior module. Use when Document Data Text is empty.1. Data

Output

The module returns one bundle per run. The generated file is placed on the Doc Data output field.

FieldTypeWhat it contains
Doc DataBinaryThe generated PDF document. Map into a downstream Upload File or Send Email Attachment module.
File NameStringOutput filename based on Template Name with the extension matching Output Type.
Mime TypeStringMIME type of the generated document.

Production patterns

Common Make patterns for PDF form templatesReplace the manual test with these once the sample works.
Template from cloud storage
  1. Dropbox or Google Drive stores template.pdf.
  2. Download a File loads the template as binary.
  3. Generate Document Single maps Template Name and Template.
  4. Data is built from Sheets or a webhook as JSON.
Webhook to delivered PDF
  1. Webhook receives the record payload.
  2. Generate Document Single merges it with the template.
  3. Output Type is PDF.
  4. Send Email or Upload File delivers Doc Data.
Batch from a data source
  1. Search Records returns many rows.
  2. Iterator loops one record at a time.
  3. Generate Document Single runs once per record.
  4. Each file is uploaded to a per-record folder.

Frequently Asked Questions

How does form filling differ from a Word template?+
A Pdf Form template has named AcroForm fields instead of mustache placeholders. The module writes each data value into the form field of the same name and returns the completed PDF.
What happens to fields with no matching data?+
Unmatched form fields are left blank. Only fields whose names match a key in your data file are filled, so partial data still produces a valid PDF.
Can a Pdf Form template output Word?+
No. Form-fill templates output PDF. If you need an editable document, use a PDF4me Word Template instead.
Which data formats can I use to fill the form?+
Set Document DataType to Json or Xml. The sample pack includes formdata.json, test.xml, and test.csv with the same field values.

For the underlying template engine, see the Aspose Words for .NET documentation and the Make data structures reference.