MintPDF
v0.1.3Turn HTML or Markdown into a clean, styled PDF and get a download link.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_pdf Generate a PDF from HTML or Markdown
Renders HTML or Markdown into a PDF and returns a download URL valid for one hour. Provide exactly one of `html` or `markdown`. Markdown is styled with a clean default stylesheet, so it is the quickest way to produce a presentable document.
| Parameter | Type | Description |
|---|---|---|
footerText | string | Small footer text on every page |
format | string | Paper size, default A4 |
headerText | string | Small header text on every page |
html | string | Full HTML document or fragment to render |
landscape | boolean | Landscape orientation, default false |
margin | string | Margin on all sides, e.g. "18mm" |
markdown | string | Markdown content, rendered with the default stylesheet |
pageNumbers | boolean | Show page numbers in the footer |
pdf_from_url Generate a PDF from a public URL
Loads a public web page and renders it to PDF, returning a download URL valid for one hour. Only public http/https addresses are allowed.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to render |
footerText | string | Small footer text on every page |
format | string | Paper size, default A4 |
headerText | string | Small header text on every page |
landscape | boolean | Landscape orientation, default false |
margin | string | Margin on all sides, e.g. "18mm" |
pageNumbers | boolean | Show page numbers in the footer |