Markdown to PDF (Styled)
VerifiedConvert Markdown files to styled PDFs using pandoc and wkhtmltopdf with built-in or custom CSS style options.
$ Add to .claude/skills/ About This Skill
# md-to-pdf
version: 1.0.0 author: 大总管 description: Convert Markdown (.md) files to styled PDF documents with pandoc + wkhtmltopdf
Use this skill to convert Markdown to PDF with consistent styles.
Quick Start
- Ensure dependencies exist:
```bash pandoc --version wkhtmltopdf --version ```
- Run conversion:
```bash bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md ```
Style Options
Use built-in styles:
- `clean` (default): simple business style
- `modern`: blue, presentation-friendly
- `paper`: serif, reading-friendly
Examples:
```bash bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md --style clean bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md /abs/path/out.pdf --style modern bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md --style paper ```
Custom CSS
Pass an absolute CSS path:
```bash bash {baseDir}/scripts/md2pdf.sh /abs/path/doc.md /abs/path/doc.pdf --style /abs/path/custom.css ```
Notes
- Script enables local CSS loading via `--enable-local-file-access`.
- If output title warning appears, set Markdown metadata `title:`.
- For detailed usage and troubleshooting, read `{baseDir}/references/usage.md`.
Use Cases
- Convert Markdown files to styled PDFs using pandoc and wkhtmltopdf
- Apply custom CSS styles to PDF output for branded documents
- Generate professional PDF documents from Markdown source files
- Create print-ready PDFs with consistent typography and layout
- Build automated Markdown-to-PDF pipelines with style customization
Pros & Cons
Pros
- +Compatible with multiple platforms including claude-code, openclaw
- +Well-documented with detailed usage instructions and examples
- +Purpose-built for frontend development tasks with focused functionality
Cons
- -No built-in analytics or usage metrics dashboard
- -Configuration may require familiarity with frontend development concepts
FAQ
What does Markdown to PDF (Styled) do?
What platforms support Markdown to PDF (Styled)?
What are the use cases for Markdown to PDF (Styled)?
100+ free AI tools
Writing, PDF, image, and developer tools — all in your browser.
Next Step
Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.