用途:nano-pdf 通过命令行接收自然语言指令,对 PDF 的指定页面进行编辑,或直接创建新的 PDF 文件。
主要能力:支持编辑已有 PDF 的某一页(如改标题、修正错别字),也支持根据描述生成新 PDF(如带页眉、项目符号和页脚的单页摘要)。多页编辑需按页分别执行命令。
使用方式:编辑示例为 nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle";创建示例为 nano-pdf create output.pdf "Create a one-page summary of quarterly results with a header, bullet points, and a footer"。在 SwarmClaw 中,先检查是否安装:which nano-pdf;未安装可用 uv tool install nano-pdf 或 pip install nano-pdf 安装,然后运行相应命令,并向用户报告输出文件路径。
限制与注意:页码基准(0 起或 1 起)因工具版本而异,若结果偏移一位可换另一种重试;报告成功前应检查输出 PDF;多页编辑需逐页运行命令。其他细节暂未提供。