Claude Skill

lovstudio/any2pdf

any2pdf 是一个 Claude Skill,可将 Markdown 转换为专业排版的 PDF,专为 AI 编程助手设计,用于生成精美的文档。

概览

Stars173
Forks34
语言Python
最后更新2026-05-08
最近同步2026-06-23
前往 GitHub

仓库信息

拥有者lovstudio
仓库any2pdf
完整名称lovstudio/any2pdf
Repo ID1,198,553,268

安装这个 Skill

npx skills add lovstudio/any2pdf -g -y

Registry 信息

类型codex_skill
质量分80/100
验证状态readme_parsed
最近验证2026-06-23
平台
ClaudeCodexCursor
能力
pdfimageterminalworkflow
识别文件
README.mdpackage.jsontests
配置键
PACKAGE_JSON
安装方式
  • npx skills add lovstudio/any2pdf -g -y
  • pip install reportlab
  • pip install matplotlib

项目简介

any2pdf 是一个 Claude Skill,可将 Markdown 文件转换为专业排版的 PDF,专为 AI 编程助手设计,用于直接从代码或笔记生成精美的文档。

英文描述

Markdown to professionally typeset PDF — an agent skill for AI coding assistants

要点

  • 将 Markdown 转换为专业排版的 PDF
  • 作为面向 AI 编程助手的 Claude Skill 设计
  • 使用 Python 构建,处理可靠
  • 支持干净、可发表的输出

使用场景

  • 从 Markdown 笔记生成精美的 PDF 报告
  • 为代码项目创建格式化的文档
  • 从 AI 生成的内容制作专业的 PDF
  • 将技术写作转换为可发表的格式

README 摘要

# 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

话题

暂无话题

探索更多

数据来自 GitHub,同步时间:2026-06-23