export-pdf

Installation
SKILL.md

Export Markdown → PDF

Converts one or more Markdown files into self-contained PDFs (images inlined, fonts embedded) using system pandoc + weasyprint, with a Chinese-friendly stylesheet.

<SKILL_DIR> is this skill's directory. <PROJECT_DIR> is the directory containing the markdown being exported.

Workflow

  1. Run bash <SKILL_DIR>/scripts/check-env.sh. If it FAILs, fix per the FAIL message (see "Environment bootstrap" below) and re-run until green.
  2. Export:
    • Single file: bash <SKILL_DIR>/scripts/export-pdf.sh <PROJECT_DIR>/input.md
    • Whole directory: bash <SKILL_DIR>/scripts/export-pdf.sh <PROJECT_DIR> (every top-level *.md; pass --recursive to include subdirectories)
  3. Report output path(s), size, and page count to the user.
Installs
2
Repository
peachest/skills
First Seen
9 days ago