render_pdf
Convert a web page or raw HTML into a print-ready PDF for invoices and reports. Configure paper size, margins, orientation, and header/footer text, then get file size info.
Instructions
Render a web page (or raw HTML) to a print-ready PDF file. Returns size info; PDF bytes are not inlined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The page to convert | |
| html | No | Raw HTML to convert instead of a URL — ideal for invoices and reports | |
| paper | No | Paper size, default A4 | |
| margin | No | ||
| landscape | No | ||
| footerText | No | Text in the footer; page numbers are added automatically | |
| headerText | No | Text centered in the header of every page |