RenderDock

v0.1.1
io.github.haitao-66/renderdock Checked 17 hours ago Published 14 days ago

Render 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).

ParameterTypeDescription
dataobjectData merged into the template
filenamestringBase name for the output file, without extension
formatstringOutput format (default pdf)
heightintegerPNG viewport height in px (default 900)
htmlstringRaw HTML
markdownstringMarkdown source text
out_dirstringDirectory for the output file (default ./renders)
paperstringPaper size, e.g. A4, Letter (default A4)
response_modestringHow to return the file (default path)
templatestringHandlebars template
urlstringPublic http(s) URL to render
widthintegerPNG viewport width in px (default 1280)