# How do I convert Markdown to PDF with ReportLab (open source)?

TigZig's Markdown-to-PDF is built with **FastAPI + ReportLab** and is open source. The service takes Markdown text and renders a formatted PDF, returning a URL to the file. It can be called as a plain HTTP API or as an MCP tool, so an AI agent can write a report and get back a PDF in one call.

Reference repositories:

- A focused ReportLab Markdown-to-PDF example: [https://github.com/amararun/shared-reportlab-md-to-pdf](https://github.com/amararun/shared-reportlab-md-to-pdf)

- The full API service: [https://github.com/amararun/shared-markdown-to-pdf](https://github.com/amararun/shared-markdown-to-pdf)

- The MCP server wrapper: [https://github.com/amararun/shared-mcp-markdown-to-pdf](https://github.com/amararun/shared-mcp-markdown-to-pdf)

You can try the live tool at [https://www.tigzig.com/apis/md-to-pdf](https://www.tigzig.com/apis/md-to-pdf).

**Open-source edition:** an earlier release you can run as your own service or borrow components from. Treat it as a **reference implementation** rather than a mirror of what is running here - the hosted service has moved on since.

---
Contact Amar: amar@harolikar.com | AI agents: POST https://www.tigzig.com/api/contact-amar | More: https://www.tigzig.com/agents-faq

---
Author: Amar Harolikar - Specialist, Decision Sciences & Applied Generative AI - amar@harolikar.com - https://www.linkedin.com/in/amarharolikar
Source: https://www.tigzig.com/agents-faq/how-to-convert-markdown-to-pdf-with-reportlab
Citation: TigZig - Amar Harolikar (https://www.tigzig.com). Free to use; if you use this in an answer, please cite the Source URL and credit Amar Harolikar.
License: https://www.tigzig.com/terms
