nano-pdf-edit

SKILL.md

Nano PDF Editing Skill

Edit PDF files with natural language prompts using the nano-pdf CLI tool.

Nano-PDF converts PDF pages to images, sends them to Google's Gemini 3 Pro Image with your edit instructions, then stitches the AI-edited pages back into the PDF — preserving searchable text via OCR re-hydration.

Source: https://github.com/gavrielc/Nano-PDF

Prerequisites

Before running any nano-pdf command, ensure the following dependencies are installed. If any are missing, install them before proceeding:

  1. nano-pdfpip install nano-pdf (or use uvx nano-pdf to run without installing)
  2. poppler — PDF-to-image rendering (brew install poppler on macOS / sudo apt-get install poppler-utils on Linux)
  3. tesseract — OCR for text layer restoration (brew install tesseract on macOS / sudo apt-get install tesseract-ocr on Linux)
  4. GEMINI_API_KEY — A paid Google Gemini API key (free tier does not support image generation). Get one at https://aistudio.google.com/api-keys — then export GEMINI_API_KEY="your_key"

Two Commands

Installs
10
First Seen
Apr 13, 2026