home / skills / openclaw / skills / nano-pdf
This skill lets you edit a specific PDF page using natural-language instructions via the nano-pdf CLI, streamlining document updates.
npx playbooks add skill openclaw/skills --skill nano-pdfReview the files below or copy the command above to add this skill to your agents.
---
name: nano-pdf
description: Edit PDFs with natural-language instructions using the nano-pdf CLI.
homepage: https://pypi.org/project/nano-pdf/
metadata: {"clawdbot":{"emoji":"📄","requires":{"bins":["nano-pdf"]},"install":[{"id":"uv","kind":"uv","package":"nano-pdf","bins":["nano-pdf"],"label":"Install nano-pdf (uv)"}]}}
---
# nano-pdf
Use `nano-pdf` to apply edits to a specific page in a PDF using a natural-language instruction.
## Quick start
```bash
nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"
```
Notes:
- Page numbers are 0-based or 1-based depending on the tool’s version/config; if the result looks off by one, retry with the other.
- Always sanity-check the output PDF before sending it out.
This skill provides a simple CLI tool, nano-pdf, that applies edits to a specific page inside a PDF using plain-language instructions. It lets you change text, correct typos, or adjust page content without opening a full PDF editor. The interface is optimized for quick, focused edits from the terminal.
You run the nano-pdf CLI with the target file, a page identifier, and a natural-language instruction. The tool inspects the specified page, interprets the instruction, applies the edit, and writes an updated PDF. Page numbering may be 0-based or 1-based depending on the installed version, so verify results and retry with the alternate index if edits appear shifted.
How do I know if page numbers are 0-based or 1-based?
If the edit targets the wrong page, rerun the command with the page index shifted by one. Try both conventions on a copy to determine which your installation uses.
Can I undo an edit?
The CLI writes a new PDF. Keep a backup of the original file to revert. Consider scripting edits to write to a separate output filename.