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:
- nano-pdf —
pip install nano-pdf(or useuvx nano-pdfto run without installing) - poppler — PDF-to-image rendering (
brew install poppleron macOS /sudo apt-get install poppler-utilson Linux) - tesseract — OCR for text layer restoration (
brew install tesseracton macOS /sudo apt-get install tesseract-ocron Linux) - 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"