Works with the AI Agents you already use
md2pdf
Convert a Markdown file into a Chinese PDF
Free
About this skill
Skill name md2pdf — Chinese A4 PDF Typesetter Short description(列表页标题下面那一行,约 150 字符) Turn Markdown into a print-ready A4 PDF with correct Chinese typography: justified CJK text, zebra tables that never split a word, repeating headers, and real page numbers. Full description(详情页正文) Most Markdown-to-PDF tools produce a browser dump. This one produces something you can hand to a teacher, a reviewer or an interviewer.
It is tuned for Chinese-language documents — the kind full of wide tables, blockquotes and code blocks — where default CSS quietly falls apart.
What you get:
- A4 page geometry with proper Chinese margins (17/16/20mm) and justified ideographic text
- Serif body / sans-serif headings, zebra-striped tables, thead repeated on every page
- A real footer: "第 N 页 / 共 M 页", plus an optional custom note
- Long code blocks that flow across pages instead of leaving half-empty ones behind
- YAML frontmatter stripped automatically (it would otherwise print as garbage on page 1)
Works offline. No API keys, no server, no external font files — it drives the Edge/Chrome already installed on your machine, then stamps page numbers with reportlab.
Two things it is unusually good at, because both cost real debugging time:
- Tables. English words stay whole, a short link in the last column doesn't collapse to a one-character column, and wide 5+ column CJK tables get a documented fix instead of a guess.
- Page count. A built-in "dense layout" recipe (measured: 1,523 lines from 44 → 30 pages) plus a blank-page diagnosis step (2,042 lines, 19 code blocks: 41 → 29 pages, nothing deleted).
Includes a pre-delivery checklist that renders page 1 to PNG — layout bugs are only visible in the image, never in the exit code.
Requirements: Python 3.9+, pip install markdown pypdf reportlab, and Chrome or Edge.
Run: python md2pdf.py report.md
Tags(逗号分隔,挑 5–8 个)
markdown, pdf, pdf export, chinese, cjk, typesetting, print, report, docx alternative, publishing
Category
Writing & Content → (次选) Workflow Automation
Pricing
Free
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 26 days ago
- Free with an Agensi account
Requires