Generate Document - Template Merge for Make
PDF4me Generate Document Single module delivers dynamic single document creation from Word, HTML, or PDF templates within Make scenarios using mustache syntax or merge fields with JSON/XML data sources. This versatile document generation service transforms templates into personalized documents—enabling automated contract creation, certificate issuance, invoice generation, and custom report workflows across cloud storage platforms and business applications.
Authenticating Your API Request
To access the PDF4me Web API through Make, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Make scenarios and PDF4me's powerful document generation services.

Key Features
- Multi-Template Support: Use Word, HTML, or PDF templates with merge fields
- Flexible Data Sources: Accept JSON, XML, or CSV formatted data
- Mustache Syntax: Use
{{fieldname}}placeholders in templates - Dynamic Content: Map scenario variables to template fields
- Metadata Control: Configure field behaviors with optional metadata settings
Parameters
Complete list of parameters for the Generate Document Single module. Configure these parameters to control single document generation.
Important: Parameters marked with an asterisk (***) are required and must be provided for the module to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Template File Type*** | String | Template Format • Word - DOCX template with merge fields or mustache • HTML - HTML template with mustache placeholders • PDF - PDF template with fillable form fields • Determines template processing method | Word |
| Template Name*** | String | Template Filename • Template file name with proper extension • Must match Template File Type (.docx, .html, .pdf) • Used for processing identification • Supports dynamic naming | certificate_template.docx |
| Template*** | Buffer | Template File Content • Map template file buffer from previous module • Source from Dropbox, Google Drive, HTTP • Binary template with placeholders • Reusable template for multiple generations | [Buffer from Get File] |
| Document DataType*** | String | Data Format • JSON - JSON formatted data for merging • XML - XML formatted data for merging • CSV - CSV formatted data for merging • Must match format of provided data | JSON |
| Document Data Text | String | Inline Data String • Data as text string directly in parameter • Use when data is from previous module output • Alternative to Document Data File • Supports dynamic content from scenario | {"name":"John","date":"2024-01-15"} |
| Document Data File | Buffer | Data File Content • Map data file buffer containing JSON/XML/CSV • Alternative to Document Data Text • Use when data stored in file format • Takes precedence if both provided | [Data Buffer] |
| Meta Data Json | String | Field Metadata Configuration • Optional JSON for field formatting rules • Configure date formats, checkboxes, HTML • Specify field types and transformations • Advanced customization option | {"FieldsMetaData":[...]} |
Output
The PDF4me Generate Document Single module returns comprehensive output data for seamless Make scenario integration:
- Table
- JSON
- Scenario Integration
Table View
Response data in a structured table format:
| Parameter | Type | Description |
|---|---|---|
| Name | String | Generated document filename |
| Doc Data | Buffer | Generated personalized document in Buffer format |
JSON Response Format
The raw JSON response from the module:
{
"Name": "certificate_john_smith.pdf",
"Doc Data": "[Buffer Data - Generated Document]"
}
Make Scenario Usage
Use generated document in subsequent modules:
- Email Delivery: Send personalized document to recipient
- Cloud Storage: Upload to Dropbox, Google Drive folders
- Database Link: Attach to customer record in Airtable
- Further Processing: Apply watermarks, signatures, or merging
- Print Service: Send to automated printing systems
- Archive Storage: Store generated document for records
Scenario Examples
The PDF4me Generate Document Single module in Make provides comprehensive scenario templates for document generation automation:
- Certificate Generation
- Contract Generation
- Invoice Generation
- Report Generation
Automated Course Certificate Generation Scenario
Transform your credential issuance with automated certificate creation:
Complete Scenario Steps:
- Trigger: Student completes course in LMS
- Get Student Data: Retrieve name, course, completion date
- Get Certificate Template: Fetch Word template from Google Drive
- Prepare JSON Data: Format student data for template merge
- Generate Certificate: Create personalized PDF certificate
- Add Certificate Number: Assign unique certificate ID
- Email Student: Send certificate PDF to student email
- Archive Certificate: Store in Google Drive certificates folder
Business Benefits:
- Generates 200+ certificates monthly automatically
- Provides instant certificate delivery upon completion
- Eliminates manual certificate creation entirely
- Ensures consistent professional certificate formatting
Automated Sales Contract Generation Scenario
Streamline your contract workflows with automated document generation:
Complete Scenario Steps:
- Trigger: Deal closed in CRM system
- Get Deal Details: Retrieve customer, products, pricing, terms
- Get Contract Template: Fetch HTML contract template
- Format Contract Data: Prepare JSON with all contract details
- Generate Contract: Create personalized PDF contract
- Digital Sign: Apply company digital signature
- Upload to CRM: Attach contract to deal record
- Email Customer: Send contract for customer signature
Business Benefits:
- Generates 80+ contracts monthly automatically
- Reduces contract creation time from 2 hours to 5 minutes
- Ensures accurate contract terms from CRM data
- Accelerates deal closure by 50%
Automated Custom Invoice Generation Scenario
Optimize your billing with automated personalized invoice creation:
Complete Scenario Steps:
- Trigger: Order fulfilled in e-commerce platform
- Get Order Data: Retrieve customer, items, amounts, shipping
- Calculate Totals: Compute subtotal, tax, shipping, total
- Get Invoice Template: Fetch Word invoice template
- Generate Invoice: Create personalized invoice PDF
- Add Invoice Number: Insert sequential invoice number
- Email Customer: Send invoice via Gmail
- Update Accounting: Post invoice to accounting system
Business Benefits:
- Generates 400+ invoices monthly automatically
- Eliminates manual invoice creation and data entry
- Ensures accurate calculations and formatting
- Provides instant invoice delivery to customers
Automated Personalized Report Generation Scenario
Enhance your reporting with automated custom report creation:
Complete Scenario Steps:
- Trigger: Scheduled monthly reporting cycle
- Query Database: Get performance data for department
- Calculate Metrics: Compute KPIs and performance indicators
- Get Report Template: Fetch HTML report template
- Generate Report: Create personalized PDF report
- Add Charts: Include data visualizations in report
- Email Manager: Send report to department head
- Archive Report: Store in Google Drive reports folder
Business Benefits:
- Generates 50+ personalized reports monthly automatically
- Provides customized insights for each department
- Reduces report creation time by 90%
- Ensures consistent professional report formatting
Industry Use Cases & Applications
- Education & Training
- Sales & Business Development
- Finance & Accounting
- Human Resources
- Certificate Issuance: Generate completion certificates
- Student Reports: Create personalized progress reports
- Transcripts: Generate official academic transcripts
- Award Letters: Create scholarship notification letters
- Sales Contracts: Generate personalized agreements
- Proposals: Create customized sales proposals
- Quotes: Generate professional quotations
- NDAs: Create non-disclosure agreements
- Invoice Generation: Create customer invoices
- Account Statements: Generate personalized statements
- Payment Receipts: Create transaction receipts
- Financial Reports: Generate custom financial documents
- Offer Letters: Generate employment offers
- Welcome Packages: Create new hire documentation
- Performance Reviews: Generate review documents
- Benefits Statements: Create personalized benefits summaries