nano-pdf
Edit text in existing PDFs via natural-language prompts.
- License 许可
- MIT
- 最近更新
- 2026-08-01
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- nano-pdf
- author
- community
- license
- MIT
- version
- 1.0.0
- metadata
- { "tags": [ "PDF", "Documents", "Editing", "NLP", "Productivity" ], "homepage": "https://pypi.org/project/nano-pdf/", "related_skills": [ "pdf", "ocr-and-documents" ] }
- platforms
- [ "linux", "macos", "windows" ]
- description
- Edit text in existing PDFs via natural-language prompts.
03 SKILL.md 正文
nano-pdf
Edit PDFs using natural-language instructions. Point it at a page and describe what to change. For structural PDF work (merge, split, forms, watermarks, creation), see the pdf skill; for text extraction from scans, see ocr-and-documents.
Prerequisites
# Install with uv (recommended)
uv pip install nano-pdf
# Or with pip
pip install nano-pdf
Usage
nano-pdf edit <file.pdf> <page_number> "<instruction>"
Examples
# 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'"
Notes
- Page numbers may be 0-based or 1-based depending on version — if the edit hits the wrong page, retry with ±1
- Always verify the output PDF after editing (use
read_fileto check file size, or open it) - The tool uses an LLM under the hood — requires an API key (check
nano-pdf --helpfor config) - Works well for text changes; complex layout modifications may need a different approach
04 同仓库更多 Skills
clarity-gate
Pre-ingestion verification for epistemic quality in RAG systems. Ensures documents are properly qualified before entering knowledge bases. Produces CGD (Clarity-Gated Documents) and validates SOT (Source of Truth) files.
skill-check
Validate Claude Code skills against the agentskills specification. Catches structural, semantic, and naming issues before users do.
peon-ping-use
Set which voice pack (character voice) plays for the current chat session. Automatically enables session_override rotation mode if not already set. Use when user wants a specific character voice like GLaDOS, Peon, or Kerrigan for this conversation.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate exte...
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browse...
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.