compose_document
Assemble multi-part documents from HTML or Markdown sections, add watermarks, and export as PDF, DOCX, or ODT.
Instructions
Compose a multi-part document from several sections.
Each part is a dict with: htmlContent, markdownContent, templateName, fields.
Args: parts: List of document parts. Each part can have htmlContent, markdownContent, templateName, fields. watermark: Optional diagonal watermark text overlay. output_format: Output format – PDF, DOCX, or ODT (default: PDF).
Returns: Base64-encoded document bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | ||
| watermark | No | ||
| output_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |