MintPDF

v0.1.3
io.github.TrendTweekers/mintpdf Checked 12 hours ago Published 3 months ago

Turn 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.

ParameterTypeDescription
footerTextstringSmall footer text on every page
formatstringPaper size, default A4
headerTextstringSmall header text on every page
htmlstringFull HTML document or fragment to render
landscapebooleanLandscape orientation, default false
marginstringMargin on all sides, e.g. "18mm"
markdownstringMarkdown content, rendered with the default stylesheet
pageNumbersbooleanShow 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to render
footerTextstringSmall footer text on every page
formatstringPaper size, default A4
headerTextstringSmall header text on every page
landscapebooleanLandscape orientation, default false
marginstringMargin on all sides, e.g. "18mm"
pageNumbersbooleanShow page numbers in the footer