跳到主要内容

Nano Pdf

使用 nano-pdf CLI 并通过自然语言指令编辑 PDF。无需手动编辑,即可修改文本、修正拼写错误、更新标题以及对特定页面进行内容更改。

技能元数据

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

参考:完整 SKILL.md

信息

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

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 <file.pdf> <page_number> "<instruction>"

示例

# 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 以了解配置)
  • 适用于文本更改;复杂的布局修改可能需要采用其他方法