Skip to main content

Generate Documents - Deprecated Legacy Action

⚠️ Deprecation Notice: This action will be deprecated soon. Please use Generate Document Single for single document generation or Generate Documents Multiple for batch document generation.

PDF4me Generate Documents (legacy) action enables document generation from templates using Zapier automation. This action dynamically generates documents using Word or HTML templates with mustache syntax or merge fields as the source, with JSON or XML data sources.

Also, we have shared a zap to ease your setup.

Authenticating Your API Request

To access the PDF4me Web API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user.

Generate Documents

Parameters

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
Template File***FileA template file for generating documents. Supports Word or HTML templatestemplate.docx
Template File NameStringName for the output file. If not provided, will use template filenamegenerated_document
Template Type***OptionTemplate file type:
Word - Set this value when sending a Word template
HTML - Set this value when sending an HTML template
Word
Input Data***StringText containing dynamic data values for merging with the template. JSON or XML format with document data{"Documents":[{"name":"John"}]}
Input Data Type***OptionData type for the template:
JSON - Use JSON formatted data
XML - Use XML formatted data
JSON
Output Document TypeOptionThe output type of generated documents:
PDF - Generate PDF
Word - Generate Word
Excel - Generate Excel
HTML - Generate HTML
PDF
Meta DataStringJSON string to specify fields that need formatting (e.g., Date fields with custom format){"FieldsMetaData":[...]}

Output

The PDF4me Generate Documents action returns an array of generated documents for seamless Zapier workflow integration:

Note: The output is an array of documents. To process them one by one, you can use Looping by Zapier.

Table View

Response data in a structured table format:

ParameterTypeDescription
File NameStringThe file name of the generated document without extension
File ExtensionStringFile extension of the output document
Full File NameStringComplete filename including extension
File URLStringDirect URL to access the generated document
File SizeNumberSize of the generated document in bytes

Migration Guide

For new workflows, please use:

Migration Benefits

  • Improved performance and reliability
  • Better error handling and validation
  • Enhanced workflow integration capabilities
  • Simplified parameter configuration

Get Help