mcpField
N
nano-pdf

nano-pdf

github.com/winsorllcDocuments040 installsUpdated 35w ago
Repository

About nano-pdf

nano-pdf is a command-line skill for editing PDF pages with natural-language instructions and performing common PDF operations. It is intended for people updating reports, presentations, and other PDF documents; AI-powered edits require an OPENAI_API_KEY.

Key features

  1. 01Edit PDF pages with natural-language instructions
  2. 02Create PDFs from text
  3. 03Merge PDF files
  4. 04Split PDFs into pages
  5. 05Extract page ranges

Use cases

  1. 01Updating text in an existing report
  2. 02Changing a presentation page title
  3. 03Combining several PDF documents
  4. 04Extracting or splitting pages for reuse

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/winsorllc/upgraded-carnival --skill nano-pdf

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

Bundled filesscripts/edit_pdf.py

Details

From the project README

nano-pdf

Use nano-pdf to apply edits to PDFs using natural-language instructions. This skill provides PDF editing capabilities beyond basic reading.

Installation

# Install uv if not present
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install nano-pdf
uv pip install nano-pdf

Quick Start

Edit a specific page:

nano-pdf edit deck.pdf 1 "Change the title to 'Q3 Results' and fix the typo in the subtitle"

Commands

Edit PDF Page
nano-pdf edit <pdf_file> <page_number> "<instruction>"
  • page_number: 0-based or 1-based depending on version
  • instruction: Natural language description of what to change

Example:

nano-pdf edit report.pdf 0 "Update the header to 'Annual Report 2026'"
Create PDF from Text
nano-pdf create --output output.pdf --text "Your content here"
Merge PDFs
nano-pdf merge --output merged.pdf file1.pdf file2.pdf file3.pdf
Split PDF
nano-pdf split input.pdf --output-dir ./pages/
Extract Pages
nano-pdf extract input.pdf --pages 1-5 --output extracted.pdf

Notes

  • Page numbers may be 0-based or 1-based; if results look off, try the other
  • Requires OPENAI_API_KEY for AI-powered edits
  • Always verify the output PDF before distribution
  • For complex edits, break into multiple smaller operations

When to Use

Use this skill when:

  • User asks to edit or modify a PDF
  • Need to update text in an existing PDF
  • Need to merge, split, or extract pages
  • Working with reports, presentations, or documents that need updates

Limitations

  • Complex layout changes may require multiple attempts
  • Image-heavy PDFs may have limited editability
  • Always sanity-check the output before sending

Comments

Markdown supported