Generate PDF from Markdown
API Reference
Generate PDF from Markdown
Converts markdown content to PDF with customizable styling options.
POST
Generate PDF from Markdown
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Markdown content and formatting options
The markdown content to convert to PDF.
Minimum string length:
1The format of the output. URL will return a direct link to the PDF, binary returns the PDF directly.
Available options:
binary, url The theme to use for the PDF.
Available options:
basic, modern The position of the page numeration.
Available options:
none, center, left, right The size of the page to use for the PDF.
Available options:
A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, Letter, B1, B2, B3, B4, B5, B6, Ledger, Legal, Executive, Folio, Tabloid Response
PDF generated successfully
Generated PDF file (when output=binary)