pdf_create_from_template
Generate PDF documents from predefined templates for invoices, reports, or letters by providing structured data matching template fields.
Instructions
Create a PDF from a named template (invoice, report, or letter). Pass structured data matching the template's expected fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateName | Yes | Template to use: invoice, report, or letter | |
| data | Yes | Template data. Invoice: companyName, clientName, invoiceNumber, items[{description, quantity, unitPrice}], taxRate, dueDate, notes, paymentTerms. Report: title, author, date, subtitle, sections[{heading, body}]. Letter: senderName, senderAddress, recipientName, recipientAddress, subject, body, closing, signatureName. | |
| outputPath | Yes | Absolute path for the output PDF file | |
| pageSize | No | Page size. Defaults to A4. |