mdpdf, a 2k line C CLI to convert Markdown to tiny, well-styled PDFs.
Raw Developer Origin & Technical Request
Hacker News
Apr 10, 2026
I have always searched for a simple tool which can convert a MD document to a well styled small PDF, just like a GitHub Readme.This was inspired by TinyPDF news.ycombinator.com/item also used this project to get familiar with agentic coding, which I had dreaded before.mdpdf supports:- using the included PDF fonts to generate tiny valid PDFs- outputs as A4 or Letter depending on your locale- plenty of common MD syntax: code blocks, inline code, lists, tables, and jpg and png imagesThat's it. It covers probably most of the use cases and can help to simply convert a Markdown write-up to a PDF to share.GitHub: github.com/schicho/mdpdfA simple make call should build it for you.
Developer Debate & Comments
Frequently Asked Questions
Market intelligence mapped to mdpdf, a 2k line C CLI to convert Markdown to tiny, well-styled PDFs..
What problem does mdpdf, a 2k line C CLI to convert Markdown to tiny, well-styled PDFs. solve?
How is the developer community reacting to mdpdf, a 2k line C CLI to convert Markdown to tiny, well-styled PDFs.?
What architecture is tied to mdpdf, a 2k line C CLI to convert Markdown to tiny, well-styled PDFs.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like Markdown and tables by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics