any2pdf
An agent skill and Python script that lets AI coding assistants convert Markdown into publication-quality PDFs, handling mixed CJK and Latin text with the right fonts on each platform.
any2pdf is a Markdown-to-PDF converter built as a single Python file with one dependency, reportlab, designed to be driven by an AI coding assistant such as Claude Code, Cursor, Copilot or Gemini CLI through natural language. Instead of exposing a rigid CLI, its skill has the agent ask about design choices such as style, a frontispiece and a watermark, then run the conversion.
It targets edge cases in mixed Chinese-English and other CJK text: correct line wrapping so names are not split mid-word, correct rendering of dates and merged headings, and platform-appropriate serif and CJK font pairs on macOS, Windows and Linux. It also renders Markdown callouts, inline images and LaTeX-style formulas.