{"category":"documents","description":"Converts Markdown to a PDF with real, selectable text. Standard Markdown (CommonMark) with tables, ~~strikethrough~~, task lists and fenced code blocks. Nothing outside the Markdown is ever loaded.","endpoint":"https://setget.net/v1/tools/markdown-to-pdf","examples":[{"input":{"markdown":"# Report\n\nSales rose **12%** this quarter.\n\n| Region | Sales |\n|--------|------:|\n| North | 420 |\n| South | 380 |"},"title":"A short report on A4"},{"input":{"font_size":12,"markdown":"# Notes\n\n- [x] Draft\n- [ ] Review\n\n```python\nprint(\"hello\")\n```","page_numbers":true,"page_size":"Letter","theme":"serif"},"title":"US Letter, serif, with page numbers"}],"input_schema":{"additionalProperties":false,"properties":{"allow_html":{"default":false,"description":"Keep harmless HTML tags written in the Markdown, such as <br>, <sub> and <div style=\"page-break-after: always\">. Scripts, style sheets and frames are always removed. When off, HTML is shown as text.","type":"boolean"},"font_size":{"default":11,"description":"Size of the body text in points.","maximum":24,"minimum":6,"type":"integer"},"margin":{"default":20,"description":"Empty space around the text on every page, in millimetres.","maximum":50,"minimum":5,"type":"integer"},"markdown":{"description":"The Markdown to convert.","examples":["# Report\n\nSales rose **12%** this quarter.\n\n| Region | Sales |\n|--------|------:|\n| North | 420 |"],"maxLength":100000,"type":"string"},"page_numbers":{"default":false,"description":"Print \"page / pages\" at the bottom of every page.","type":"boolean"},"page_size":{"default":"A4","description":"Paper size.","enum":["A4","Letter","A5","Legal"],"type":"string"},"theme":{"default":"clean","description":"Look of the document: clean is sans-serif, serif is a book-like face with justified text, compact fits more on a page.","enum":["clean","serif","compact"],"type":"string"},"title":{"default":"","description":"Title stored in the PDF, shown by viewers in the window title. Defaults to the first heading.","maxLength":200,"type":"string"}},"required":["markdown"],"type":"object"},"keywords":["markdown to pdf","md to pdf","convert markdown to pdf","markdown pdf","readme to pdf","markdown printer","export markdown","markdown document","pdf from markdown","markdown to pdf online"],"related":["markdown-to-html","markdown-to-docx","html-to-pdf","pdf-to-markdown","pdf-merge","pdf-compress"],"slug":"markdown-to-pdf","summary":"Turn Markdown into a tidy PDF with headings, tables and coloured code, in a choice of page sizes and styles.","tier":"job","timeout_seconds":300,"title":"Markdown to PDF","url":"https://setget.net/tools/markdown-to-pdf"}
