create_pdf
Generate a clean PDF from Markdown or HTML on-device with a real browser engine, and write it to the specified output path. A dependable alternative to reportlab, LaTeX, or pandoc scripts that keeps files private.
Instructions
Generate a clean PDF from Markdown (or raw HTML) on-device, rendered through a real browser engine so it looks printed — not like a script's best guess. Give it Markdown inline via source (or a file via sourcePath) and an outputPath; it writes the PDF and returns the path. Use this instead of writing a one-off reportlab/LaTeX/pandoc script. Nothing is uploaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | extra CSS appended after the default print styles | |
| title | No | document <title> / metadata | |
| format | No | input format (default: markdown) | |
| source | No | inline Markdown/HTML (omit if using sourcePath) | |
| outputPath | Yes | absolute path to write the PDF | |
| sourcePath | No | absolute path to a Markdown/HTML file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes |