Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


title: “Nano Pdf — Edit PDF text/typos/titles via nano-pdf CLI (NL prompts)” sidebar_label: “Nano Pdf” description: “Edit PDF text/typos/titles via nano-pdf CLI (NL prompts)”

{/* 本页面由 website/scripts/generate-skill-docs.py 根据技能对应的 SKILL.md 文件自动生成。请直接编辑源文件 SKILL.md,而非此页面。 */}

Nano Pdf

通过 nano-pdf CLI(支持自然语言指令)编辑 PDF 中的文本、拼写错误及标题。

技能元数据

来源内置(默认已安装)
路径skills/productivity/nano-pdf
版本1.0.0
开发者社区用户
许可协议MIT
支持平台linux、macos、windows
标签PDF文档处理编辑NLP效率工具

参考:完整的 SKILL.md 文件

:::info 以下是 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命令查看文件大小,或直接打开文件进行确认)。
  • 该工具在底层依赖于大型语言模型,因此需要API密钥(具体配置方式可查阅nano-pdf --help)。
  • 该工具非常适合文本修改;对于复杂的布局调整,则可能需要采用其他方法。