hunter00zb211 downloads将 Markdown 导出为 PDF,支持图片自动压缩。Python(reportlab + Pillow)渲染,支持 CJK。/ Export Markdown to PDF with auto image compression. Python (reportlab + Pillow) engine, CJK support.
一款 Obsidian 插件,将 Markdown 笔记导出为 PDF,支持图片自动压缩。
与其他依赖浏览器渲染的 PDF 导出插件不同,本插件使用 Python(reportlab + Pillow) 作为渲染引擎,支持精确控制图片质量、可靠的中文字体渲染,生成的 PDF 文件体积显著更小。
![[图片名.png]] / ![[图片名.svg]] 自动解析 支持.excalidraw 引用时阻止导出,提示用户先转换为 PNG/SVGreportlab、Pillow 和 resvg-py:pip3 install reportlab Pillow resvg-py
| 项目 | 详情 |
|---|---|
| 操作系统 | macOS 15 (Sequoia) · Apple Silicon (M4) |
| Obsidian | 1.8+ |
| Python | 3.14.4(Homebrew,/opt/homebrew/bin/python3) |
| Node.js | 20.18.0 / 22.12.0(构建工具) |
| 字体 | 苹方 · 华文黑体 · 宋体(系统字体,自动注册) |
⚠️ 平台说明: 本插件仅在 macOS 环境下开发和测试。 未在 Windows 或 Linux 上进行验证,无法保证其他系统下的正确运行 (字体路径解析、Electron 对话框 API、Python 路径查找等在不同系统间存在差异)。 非 macOS 环境的 bug 反馈将被记录,但可能不会优先处理。
.obsidian/plugins/pdf-export-compress/ 目录Export PDF CompressPython 脚本也可以脱离 Obsidian 独立运行:
python3 md_to_pdf.py \
--md /path/to/note.md \
--vault /path/to/vault \
--quality 60 \
--max-width 900 \
--out /path/to/output.pdf
.excalidraw 图导出为 PNG 或 SVG,替换引用后再执行导出。An Obsidian plugin that exports Markdown notes to PDF with automatic image compression.
Unlike other PDF export plugins that rely on browser rendering (and often produce huge files), this plugin uses Python (reportlab + Pillow) as the rendering engine — giving you precise control over image quality, reliable CJK font support, and significantly smaller PDF files.
![[image.png]] / ![[image.svg]] automatically resolved supported.excalidraw refs are detected, with a reminder to convert to PNG/SVG firstreportlab, Pillow, and resvg-py installed:pip3 install reportlab Pillow resvg-py
| Item | Detail |
|---|---|
| OS | macOS 15 (Sequoia) · Apple Silicon (M4) |
| Obsidian | 1.8+ |
| Python | 3.14.4 (Homebrew, /opt/homebrew/bin/python3) |
| Node.js | 20.18.0 / 22.12.0 (build tool) |
| Fonts | PingFang SC · STHeiti · Songti SC (system fonts, auto-registered) |
⚠️ Platform Notice: This plugin is developed and tested on macOS only. It has NOT been verified on Windows or Linux, and we cannot guarantee correct behavior on those platforms (font path resolution, Electron dialog APIs, and Python binary discovery differ across OSes). Bug reports from non-macOS environments will be noted but may not be actively addressed.
.obsidian/plugins/pdf-export-compress/ in your vaultExport PDF CompressThe Python script can also run standalone:
python3 md_to_pdf.py \
--md /path/to/note.md \
--vault /path/to/vault \
--quality 60 \
--max-width 900 \
--out /path/to/output.pdf
.excalidraw diagram as PNG or SVG in Obsidian, replace the reference in MD, then export..excalidraw 引用时阻止导出,提示用户先转换_svg_to_png() 添加 zoom=2 参数manifest.json name 改为 Export PDF Compress,符合社区插件目录规范excalidraw_to_svg.py(纯 Python Excalidraw→SVG 渲染器)MIT © hunter00zb