Skip to main content

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.

Generate Document Single Make

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.

ParameterTypeDescriptionExample
Template File Type***StringTemplate 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***StringTemplate 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***BufferTemplate 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***StringData 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 TextStringInline 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 FileBufferData 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 JsonStringField 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 View

Response data in a structured table format:

ParameterTypeDescription
NameStringGenerated document filename
Doc DataBufferGenerated personalized document in Buffer format

Scenario Examples

The PDF4me Generate Document Single module in Make provides comprehensive scenario templates for document generation automation:

Automated Course Certificate Generation Scenario

Transform your credential issuance with automated certificate creation:

Complete Scenario Steps:

  1. Trigger: Student completes course in LMS
  2. Get Student Data: Retrieve name, course, completion date
  3. Get Certificate Template: Fetch Word template from Google Drive
  4. Prepare JSON Data: Format student data for template merge
  5. Generate Certificate: Create personalized PDF certificate
  6. Add Certificate Number: Assign unique certificate ID
  7. Email Student: Send certificate PDF to student email
  8. 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

Industry Use Cases & Applications

  • Certificate Issuance: Generate completion certificates
  • Student Reports: Create personalized progress reports
  • Transcripts: Generate official academic transcripts
  • Award Letters: Create scholarship notification letters

Get Help