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以瞭解配置) - 適用於文本更改;複雜的佈局修改可能需要採用其他方法