Generate Multiple Documents - Batch Creator for Zapier
PDF4me Generate Documents Multiple is a Zapier action that merges one template with a JSON or XML array, producing one personalized document per array item in a single run. Use it for batch contracts, invoices, certificates, or letters. Returns an array of documents for the next Zap step or a loop.
What this action does
Takes one Word, HTML, PDF, Mail Merge, or GoogleDocs template and a data array where each object represents one document's field values, then runs the same merge once per array item. The result is an array of generated documents sharing the same template and output format, ready to loop through with Looping by Zapier for per-document actions like emailing or archiving.
Authenticating Your API Request
To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's batch document generation services.
Important Facts You Should Not Miss

What Are the Key Features of Generate Documents Multiple?
- Batch Document Generation: create one document per array item from a single template in one operation
- Multi-Format Template Support: Word, HTML, PDF, Mail Merge, and GoogleDocs templates
- Array Data Input: JSON or XML array, supplied as inline text or a mapped file
- Configurable Output: choose Output Document Type for the whole batch (Pdf, Docx, and other supported formats)
Parameters
Complete list of parameters for the Generate Documents Multiple action. Parameter names match the Zapier configuration UI shown in the screenshot above.
- Map Template File and set Template File Type to match it
- Set Input Data Format Type to Text or File, then fill Data Text or Data File with a JSON/XML array (one object per document)
- Set Input Data Type to match the array format, and optionally set Output Document Type
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Template File | Required | Template file for generating documents. Supports Word (.docx), HTML, PDF, Mail Merge, or GoogleDocs templates. | contract_template.docx |
| Template File Name | Conditional | Name for the output files. If not provided, the name is picked from Template File. | contract_template |
| Template File Type | Required | Format of the template: Word, HTML, PDF, Mail Merge, or GoogleDocs. | Word |
| Input Data Format Type | Required | Whether the data array is supplied as inline text or a file. Text reveals Data Text. File reveals Data File. | Text |
| Data Text | Conditional | Inline JSON or XML array, one object per document to generate. Required when Input Data Format Type is Text. | [{"firstname":"John"},{"firstname":"Jane"}] |
| Data File | Conditional | Array data file (JSON or XML) mapped from a previous step. Required when Input Data Format Type is File. | customers_data.json |
| Input Data Type | Required | Structure of the supplied array, must match Data Text or Data File exactly. | Json |
| Output Document Type | Conditional | Format applied to every generated document in the batch: Pdf, Docx, and other supported formats. | Pdf |
| Meta Data | Conditional | Metadata to attach to template fields during generation. | - |
Important: Required in the Zapier UI: Template File, Template File Type, Input Data Format Type, Input Data Type, and (depending on Input Data Format Type) either Data Text or Data File. Template File Name, Output Document Type, and Meta Data are optional.
What Does Generate Documents Multiple Return?
The PDF4me Generate Documents Multiple action returns an array of generated documents, one entry per item in the input data array.
| Field | Type | What it contains |
|---|---|---|
File Name | String | File name of each generated document, without extension. |
File Extension | String | Extension of each output document, matching Output Document Type. |
Full File Name | String | Complete filename including extension for each document. |
File URL | String | Direct URL to each generated document. |
File Size | Number | Size of each generated document in bytes. |
Note: The output is an array of documents, one per input array item. Add Looping by Zapier after this step to iterate through each generated document.
- JSON
- Zap Integration
Example JSON response (array of documents):
[
{
"File Name": "document_001",
"File Extension": ".pdf",
"Full File Name": "document_001.pdf",
"File URL": "https://...",
"File Size": 125440
},
{
"File Name": "document_002",
"File Extension": ".pdf",
"Full File Name": "document_002.pdf",
"File URL": "https://...",
"File Size": 127680
}
]
Add Looping by Zapier after this step, then map File URL in the loop to an Upload File, email, or storage action to handle each generated document individually.
Typical Setups
Workflow ExamplesCommon Zapier workflow patterns using Generate Documents Multiple.
- A trigger fires when a batch of client records is ready for contract generation.
- A Formatter step builds a JSON array with one object per client's contract variables.
- PDF4me Generate Documents Multiple maps the contract template and the array into Data Text, with Output Document Type set to Pdf.
- Looping by Zapier iterates the returned array and emails each client their own contract.
- A billing-cycle trigger fires at the end of the period.
- An accounting or e-commerce step exports each customer's invoice data as one array item.
- PDF4me Generate Documents Multiple runs the invoice template against the array, producing one PDF per customer.
- Looping by Zapier attaches each invoice to an email step addressed to that customer.
- A trigger fires when a training program marks a cohort as complete.
- The array is built from each participant's name and completion date.
- PDF4me Generate Documents Multiple runs a certificate template with Template File Type Mail Merge against the array.
- Looping by Zapier stores each certificate in a learning-management or archive step.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Generate Documents Multiple |
| Template File | [Mapped from previous step] |
| Template File Type | Word / HTML / PDF / Mail Merge / GoogleDocs |
| Input Data Format Type | Text (or File) |
| Data Text | [{"firstname":"John"},{"firstname":"Jane"}] |
| Input Data Type | Json |
| Output Document Type | Pdf |
Common Questions
Related Actions
Same Task on Other Platforms
Industry Use Cases & Applications
- Legal & Professional Services
- Finance & Accounting
- Human Resources
- Education & Training
- Bulk Contract Generation: create multiple personalized contracts for client onboarding
- Legal Notice Distribution: generate customized legal notices for multiple recipients
- Agreement Processing: automate mass agreement creation with client-specific terms
- Document Automation: streamline legal document workflows with batch processing
- Mass Invoice Generation: create invoices for all customers in a billing cycle
- Statement Generation: generate account statements for an entire customer base
- Financial Reports: create department-specific reports for multiple stakeholders
- Billing Documents: automate bulk billing document creation
- Offer Letter Distribution: generate personalized offer letters for multiple candidates
- Employee Document Updates: create updated policy documents for all employees
- Certificate Distribution: generate training certificates for entire cohorts
- Onboarding Packets: create personalized onboarding materials for new hire groups
- Bulk Certificate Issuance: generate certificates for graduating classes
- Report Card Distribution: create personalized report cards for all students
- Course Materials: generate customized course materials for student groups
- Assessment Documents: create personalized assessment documents for cohorts