mcpField
N
nano-pdf

nano-pdf

github.com/nousresearchDocuments258.5k303 installsUpdated today
Repository

About nano-pdf

A skill for editing PDF page content from natural-language instructions, using the `nano-pdf` command. It is suited to text changes on specific pages; complex layout edits may require another approach.

Key features

  1. 01Edits a specified page from instructions
  2. 02Changes text such as titles, dates, and names
  3. 03Uses an LLM and requires an API key
  4. 04Recommends checking the edited PDF

Use cases

  1. 01Updating a report date on one page
  2. 02Correcting a title or typo in a deck
  3. 03Changing a name in a contract

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nousresearch/hermes-agent --skill nano-pdf

After installing, type/nano-pdfin Claude Code to confirm it loaded.

Details

From the project README

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 — already available in Hermes)
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_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

Comments

Markdown supported