Create From Template
AI-generatedSummary
Generate a DOCX document from a template structure and output it in a chosen format (binary DOCX file, raw OOXML XML content, base64 string, or buffer object).
Inputs
- Output Format (required) — Choose the format of the output document: binary DOCX file, raw OOXML XML content, base64 encoded string, or buffer object.
- Binary Property Name — Specify the name of the binary property where the DOCX document is stored when output format is set to binary. Defaults to 'data'.
Output shape
A single item with output document data in the format selected: if 'binary', a binary property containing the DOCX file; if 'ooxml', a JSON object containing raw OOXML XML parts; if 'base64', a base64 string of the DOCX file; if 'buffer', an array representing the buffer of the DOCX file.
When output format is 'binary', the output includes a binary property named as configured, containing the DOCX file with MIME type 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'. When output format is 'ooxml', the output JSON contains keys for main OOXML parts including 'word/document.xml', 'word/styles.xml', etc. This operation processes each input item individually and outputs correspondingly indexed results.