lov-any2pdf

Featured

Convert Markdown to polished PDF with CJK typography, code, tables, images, covers, TOC, bookmarks, and reading themes. Trigger on md2pdf, Chinese report typesetting, or print-ready PDF requests.

Data & Documents 65 stars 17 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
61
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# any2pdf — Markdown to Professional PDF This skill converts any Markdown file into a publication-quality PDF using Python's reportlab library. It was developed through extensive iteration on real Chinese technical reports and solves several hard problems that naive MD→PDF converters get wrong. ## Triggers ### Activate when - User wants to convert `.md` → `.pdf` - User has a markdown report/document and wants professional typesetting - Document contains CJK characters (Chinese/Japanese/Korean) mixed with Latin text - Document has fenced code blocks, markdown tables, or nested lists - Document has local/remote images, Obsidian callouts, emoji, or math formulas - User wants a cover page, table of contents, or watermark in their PDF ### Do not activate when - The user only wants to revise Markdown content and does not need a PDF output. - The source is HTML, DOCX, or another format and the user has not authorized a Markdown conversion step. - The user needs a slide deck, editable Word document, or image export rather than a PDF. ## Quick Start ```bash python md2pdf/scripts/md2pdf.py \ --input report.md \ --output report.pdf \ --title "My Report" \ --author "Author Name" \ --theme warm-academic ``` All parameters except `--input` are optional — sensible defaults are applied. ## Pre-Conversion Options (MANDATORY) **IMPORTANT: You MUST use the `AskUserQuestion` tool to ask these questions BEFORE running the conversion. Do NOT list options as plain text — use th...

Details

Author
lovstudio
Repository
lovstudio/skills
Created
5 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category