{"repo":"vb64/markdown-pdf","free":true,"listed":false,"github":"https://github.com/vb64/markdown-pdf","clone":"git clone https://github.com/vb64/markdown-pdf.git","description":"Markdown to pdf renderer","language":"Python","stars":155,"topics":["markdown","markdown-it","pdf","pymupdf","mermaid-diagrams","plantuml-diagrams"],"license":"AGPL-3.0","category":"media-processing","readme_excerpt":"Module markdown-pdf The free, open source Python module markdown-pdf will create a PDF file from your markdown content. When creating a PDF file you can: - Use UTF-8 encoded text in markdown in any language - Embed images used in markdown - Break text into pages in the desired order - Create a TableOfContents (bookmarks) from markdown headings - Tune the necessary elements using your CSS code - Use different page sizes within single pdf - Create tables in markdown - Use clickable hyperlinks. Thanks a lot @thongtmtrust for ideas and collaboration. - Render plantuml and mermaid code to pdf images with plugins. The module utilizes the functions of two great libraries. - markdown-it-py to convert markdown to html . - PyMuPDF to convert html to pdf . Installation Usage Create a compressed pdf with TOC (bookmarks) from headings up to level 2. Add the first section to the pdf. The title is not included in the table of contents. After adding a section to a pdf, the page count property in the section contains the number of pdf pages created for the added section. Add a second section with external and internal hyperlinks. In the pdf file it starts on a new page. Add a third section. The title is centered using CSS, included in the table of contents of the pdf file, and an image from the file img/python.png is embedded on the page. Add a next section. Two headings of different levels from this section are included in the TOC of the pdf file. The section has landscape orientation of A4 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/vb64","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vb64/markdown-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}