Claude Skill

lovstudio/any2pdf

any2pdf is a Claude Skill that converts Markdown to professionally typeset PDF, designed for AI coding assistants to produce polished documents.

Overview

Stars173
Forks34
LanguagePython
Last pushed2026-05-08
Last synced2026-06-23
View on GitHub

Repository

Ownerlovstudio
Repositoryany2pdf
Full namelovstudio/any2pdf
Repo ID1,198,553,268

Install this Skill

npx skills add lovstudio/any2pdf -g -y

Registry

Typecodex_skill
Quality score80/100
Verificationreadme_parsed
Last verified2026-06-23
Platforms
ClaudeCodexCursor
Capabilities
pdfimageterminalworkflow
Detected files
README.mdpackage.jsontests
Config keys
PACKAGE_JSON
Install methods
  • npx skills add lovstudio/any2pdf -g -y
  • pip install reportlab
  • pip install matplotlib

Summary

any2pdf is a Claude Skill that converts Markdown files into professionally typeset PDFs, designed for AI coding assistants to produce polished documents directly from code or notes.

Chinese description

Markdown 转专业排版 PDF — 面向 AI 编程助手的 Claude Skill

Key features

  • Converts Markdown to professionally typeset PDF
  • Designed as a Claude Skill for AI coding assistants
  • Built with Python for reliable processing
  • Supports clean, publication-ready output

Use cases

  • Generate polished PDF reports from Markdown notes
  • Create formatted documentation for code projects
  • Produce professional PDFs from AI-generated content
  • Convert technical writing to publication-ready format

README excerpt

# any2pdf **Tell your AI assistant "转PDF" and get a publication-quality document.** No config, no templates, no LaTeX. An [agent skill](https://agentskills.io) that gives AI coding assistants (Claude Code, Cursor, Copilot, Gemini CLI, etc.) the ability to convert Markdown into professionally typeset PDFs — with a single natural language request. ## Why This Exists Every existing Markdown-to-PDF tool falls into one of two traps: 1. **Too simple** — Pandoc/wkhtmltopdf produce passable output for English, but CJK mixed text gets butchered: wrong fonts, broken line wraps, "Claude Code" split across lines, 年月日 rendered as □□□. 2. **Too complex** — LaTeX produces beautiful output but requires a 4GB TeX distribution, arcane syntax, and breaks on every CJK edge case. No AI assistant can reliably drive it. **any2pdf** is the sweet spot: one Python file, one dependency (`reportlab`), zero config — and it handles every CJK/Latin edge case because we hit them all building real 200-page Chinese technical reports. ## What Makes It Different ### For AI Agents — Zero-Friction Workflow The skill teaches your AI assistant an **interactive workflow**, not just a CLI command: ``` You: "把这个报告转成PDF" Agent: asks about design style, frontispiece, watermark, back cover Agent: runs the conversion with all your choices ``` One sentence from you → a complete, branded document. ### For CJK Users — Battle-Tested on Real Reports Every fix in this codebase came from a real rendering bug in a real report: - **Mixed text wrapping**: "Chaofan Shou" won't split across lines; Chinese text breaks naturally at character boundaries - **Canvas CJK**: Dates like "2026年4月1日" render correctly everywhere — cover, headers, footers - **Book-quality fonts**: Palatino + 宋体 (macOS), Times + SimSun (Wind

Topics

No topics yet.

Explore more

Data from GitHub. Synced on 2026-06-23