← 返回
效率工具 中文

Markdown to PDF (Styled)

Convert Markdown files to styled PDFs using pandoc and wkhtmltopdf with built-in or custom CSS style options.
使用pandoc和wkhtmltopdf将Markdown文件转换为带样式的PDF,支持内置或自定义CSS样式。
mengwuzhi
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 1,127
下载
💾 4
安装
1
版本
#export#latest#markdown#pandoc#pdf#wkhtmltopdf

概述

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

  1. Ensure dependencies exist:
pandoc --version
wkhtmltopdf --version
  1. Run conversion:
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 {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 {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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 17:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Draw Images By Apiyi

mengwuzhi
使用APIYI API生成图片。
★ 0 📥 757
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,583
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,821