Render invoice PDF
invoice_pdfRender a stored invoice into an A4 PDF file for sending, returning the saved file path.
Instructions
Call this tool to render a stored invoice as an A4 PDF you can send. Returns the path of the file written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Invoice number to render, as returned by invoice_create | |
| out_path | No | Where to write the PDF; defaults to <data dir>/pdf/<number>.pdf. The page carries the issuer block, the BILL TO client block, dates, an item table with wrapped descriptions, subtotal, discount, one tax line per rate, the total, payment details and notes, and every money value on it carries its currency code. Use a .pdf path: the bytes written are always PDF |