# nano-pdf
使用自然语言指令编辑 PDF。指定页面并描述要修改的内容。
前置条件
# Install with uv (recommended — already available in Hermes)
uv pip install nano-pdf
# Or with pip
pip install nano-pdf
使用方法
nano-pdf edit ""
示例
# Change a title on page 1
nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"
# Update a date on a specific page
nano-pdf edit report.pdf 3 "Update the date from January to February 2026"
# Fix content
nano-pdf edit contract.pdf 2 "Change the client name from 'Acme Corp' to 'Acme Industries'"
注意事项
- 页码可能是 0 起始或 1 起始,取决于版本——如果编辑命中了错误的页面,用 ±1 重试
- 编辑后务必验证输出 PDF(使用
read_file检查文件大小,或直接打开) - 该工具底层使用 LLM——需要 API 密钥(查看
nano-pdf --help了解配置) - 适合文本类修改;复杂的版式调整可能需要其他方案
安装指南
复制下方命令,在终端运行即可安装:
# 安装到当前项目
npx skills add pdf
# 全局安装 — 所有项目可用
npx skills add pdf -g
需已安装 GenHub 桌面端
使用指南
安装完成后,在对话框中直接使用此技能。