d73ff9b0fb
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
Docker / shell lint / Lint Dockerfile (hadolint) (push) Has been cancelled
Docker / shell lint / Lint docker/ shell scripts (shellcheck) (push) Has been cancelled
Docker Build and Publish / build-amd64 (push) Has been cancelled
Docker Build and Publish / build-arm64 (push) Has been cancelled
Lint (ruff + ty) / ruff + ty diff (push) Has been cancelled
Lint (ruff + ty) / ruff enforcement (blocking) (push) Has been cancelled
Lint (ruff + ty) / Windows footguns (blocking) (push) Has been cancelled
Nix Lockfile Fix / auto-fix-main (push) Has been cancelled
Nix Lockfile Fix / fix (push) Has been cancelled
Nix / nix (macos-latest) (push) Has been cancelled
Nix / nix (ubuntu-latest) (push) Has been cancelled
OSV-Scanner / Scan lockfiles (push) Has been cancelled
Build Skills Index / build-index (push) Has been cancelled
Tests / test (1) (push) Has been cancelled
Tests / test (2) (push) Has been cancelled
Tests / test (3) (push) Has been cancelled
Tests / test (4) (push) Has been cancelled
Tests / test (5) (push) Has been cancelled
Tests / test (6) (push) Has been cancelled
Tests / e2e (push) Has been cancelled
uv.lock check / uv lock --check (push) Has been cancelled
Docker Build and Publish / merge (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
Tests / save-durations (push) Has been cancelled
53 lines
1.4 KiB
Markdown
53 lines
1.4 KiB
Markdown
---
|
|
name: nano-pdf
|
|
description: "Edit PDF text/typos/titles via nano-pdf CLI (NL prompts)."
|
|
version: 1.0.0
|
|
author: community
|
|
license: MIT
|
|
platforms: [linux, macos, windows]
|
|
metadata:
|
|
hermes:
|
|
tags: [PDF, Documents, Editing, NLP, Productivity]
|
|
homepage: https://pypi.org/project/nano-pdf/
|
|
---
|
|
|
|
# nano-pdf
|
|
|
|
Edit PDFs using natural-language instructions. Point it at a page and describe what to change.
|
|
|
|
## Prerequisites
|
|
|
|
```bash
|
|
# Install with uv (recommended — already available in Hermes)
|
|
uv pip install nano-pdf
|
|
|
|
# Or with pip
|
|
pip install nano-pdf
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
nano-pdf edit <file.pdf> <page_number> "<instruction>"
|
|
```
|
|
|
|
## Examples
|
|
|
|
```bash
|
|
# 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_file` to check file size, or open it)
|
|
- The tool uses an LLM under the hood — requires an API key (check `nano-pdf --help` for config)
|
|
- Works well for text changes; complex layout modifications may need a different approach
|