{/* 本页面由 website/scripts/generate-skill-docs.py 从技能 SKILL.md 自动生成。请编辑源 SKILL.md 而非本页面。 */}

Nano Pdf

通过 nano-pdf CLI 编辑 PDF 文本/拼写错误/标题(自然语言提示)。

技能元数据

来源内置(默认安装)
路径skills/productivity/nano-pdf
版本1.0.0
作者community
许可证MIT
平台linux, macos, windows
标签PDF, Documents, Editing, NLP, Productivity

参考:完整 SKILL.md

:::info 以下是此技能被触发时 Hermes 加载的完整技能定义。这是技能激活时代理所看到的指令。 :::

nano-pdf

使用自然语言指令编辑 PDF。指向一页并描述要更改的内容。

前提条件

# 使用 uv 安装(推荐——Hermes 中已可用)
uv pip install nano-pdf
 
# 或使用 pip
pip install nano-pdf

使用

nano-pdf edit <file.pdf> <page_number> "<instruction>"

示例

# 更改第 1 页的标题
nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"
 
# 更新特定页面上的日期
nano-pdf edit report.pdf 3 "Update the date from January to February 2026"
 
# 修复内容
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 了解配置)
  • 适用于文本更改;复杂的布局修改可能需要不同方法