Mdpdf a 2k line C CLI to convert Markdown to tiny PDFs
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
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 https://news.ycombinator.com/item?id=46316968I 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: https://github.com/schicho/mdpdfA simple make call should build it for you.
HN · launched Apr 9, 2026 · 15 upvotes (top 29%) · 0 views
Niche: document and file conversion tools · 216 launches, 24 in the last 7 days ▼ -4% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 216 launches in document and file conversion tools →
Could you build this?
Yes The author specifically demonstrated that this 2,000-line C Markdown-to-PDF utility was written using an AI coding agent.
Discussion
4 comments analyzed.
Competitors mentioned: voiden.md (markdown-based API client)
Feature requests: Markdown to PDF screenshot examples in README, Output option with blank space (40-60%) on right side for handwritten notes (Tufte layout), Screenshot of rendered PDF output in README
Competitors
Other products that read as similar to this one : 925 launches clear the similarity bar, closest 8 shown.
Attention rank: #246 of 926 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 137 days after the earliest competitor.
- mdprint · ph · 2026-09-22 · 2 upvotes · similarity 0.67
- PDF to MD · ph · 2026-09-10 · 1 upvotes · similarity 0.62
- PDF To Markdown · ph · 2026-10-17 · 1 upvotes · similarity 0.60
- MD PDF Converter · ph · 2026-10-15 · 1 upvotes · similarity 0.59
- md2pdf · ph · 2026-11-05 · 2 upvotes · similarity 0.58
- Pdf-to-Markdown CLI · hn · 2026-04-02 · 6 upvotes · similarity 0.55
- MDFK · ph · 2026-09-09 · 2 upvotes · similarity 0.54
- MDXport · hn · 2025-12-17 · 5 upvotes · similarity 0.53
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.