Generate Document (Single)
Dynamically Generate documents using the PDF4me Generate Documents action for Make. Use Word or HTML templates using mustache syntax or merge fields as the source. The data sources can be JSON or XML.
Parameters
- Template filenameString, Required
Map the template file name with the proper extension.
- Template FileBuffer, Required
Map the template file from the source action. Choose the Map option to map the filename and data.
- Data filenameString, Required
Map the data file name with the proper extension.
- Document Data FileBuffer
Map the data file from the source action. Choose the Map option to map the filename and data.
- Template File TypeOptions, Required
Template file type.
- Word - Set this value when sending a Word template
- HTML - Set this value when sending an HTML template
- PDF - Set this value for a PDF template
- Document Data TypeOptionDefault: JSON
Data type for the template
- JSON
- XML
- CSV
- Document Data TextString
Input Data text to generate the document. Add only if the data file is not mapped
Output
- NameString
The name of the output file.
- Doc DataBuffer
The output document is in Base64 format.