RenderDock
v0.1.1Render Markdown, HTML, URLs, or templates to polished PDF and PNG files
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render Render to PDF or PNG
Render Markdown, HTML, a public URL, or a Handlebars template with data into a PDF or PNG file. Exactly one of markdown, html, url, or template is required. Returns the local path of the written output file (response_mode: path, default) or the file as base64 (response_mode: base64).
| Parameter | Type | Description |
|---|---|---|
data | object | Data merged into the template |
filename | string | Base name for the output file, without extension |
format | string | Output format (default pdf) |
height | integer | PNG viewport height in px (default 900) |
html | string | Raw HTML |
markdown | string | Markdown source text |
out_dir | string | Directory for the output file (default ./renders) |
paper | string | Paper size, e.g. A4, Letter (default A4) |
response_mode | string | How to return the file (default path) |
template | string | Handlebars template |
url | string | Public http(s) URL to render |
width | integer | PNG viewport width in px (default 1280) |