{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Converts markdown text to PDF files, with support for tables, images, hyperlinks, table of contents, custom CSS styling, and optional diagram rendering via plugins.","skillfed_tags":["pdf-generation","markdown-processing","document-rendering"],"use_cases":["Generate user guides or technical documentation from markdown source files with automatic table of contents and consistent styling.","Create multi-section reports where each section can have different page sizes, margins, or styling rules.","Embed images and diagrams (via plantuml plugin) directly into PDFs generated from markdown templates.","Batch-convert markdown files to PDFs with custom branding via CSS and document metadata.","Build documentation pipelines that render markdown to PDF with internal cross-references and clickable hyperlinks."],"what_it_does":"markdown-pdf is a Python library that transforms markdown text into PDF documents. It uses markdown-it-py to parse markdown into HTML and PyMuPDF to render that HTML as PDF. The package handles UTF-8 text in any language, embeds images referenced in markdown, generates a table of contents from headings, supports custom CSS styling, and allows multiple page sizes within a single document. It also provides a plugin system for rendering code blocks like plantuml diagrams into images.\n\nThe typical workflow is to create a MarkdownPdf instance, add one or more Section objects containing markdown text, optionally configure CSS and metadata, and then save to a file or bytes buffer. Each section starts on a new page, and you can control which heading levels appear in the table of contents. The package is designed for programmatic PDF generation from markdown content rather than as a command-line tool, though the description includes an example CLI script.","worth_installing":"Yes, if you need to generate PDFs from markdown programmatically and can accept the AGPL-3.0-only license. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a straightforward API with useful features like TOC generation, image embedding, and plugin support. The AGPL license is the main constraint: verify it aligns with your project's licensing model before committing."},"id":"markdown-pdf","links":{"html":"https://skillfed.io/packages/markdown-pdf","md":"https://skillfed.io/packages/markdown-pdf.md","pypi":"https://pypi.org/project/markdown-pdf/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-28","license_spdx":"AGPL-3.0-only","license_treatment":"agpl","name":"markdown-pdf","python_support":"supports_current","summary":"Markdown to pdf renderer"},"popularity":{"monthly_downloads":557003,"position":6016,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.13.2"}
