Nano-PDF Editor

0.2.1 · active · verified Thu Apr 16

Nano-PDF is a command-line interface (CLI) tool that empowers users to edit PDF slides and documents using natural language prompts. Powered by Google's Gemini 3 Pro Image (also known as 'Nano Banana') model, it can perform tasks like updating charts, fixing typos, and adding new slides while preserving the PDF's searchable text layer through OCR re-hydration. The current version is 0.2.1, with recent updates indicating active development and a focus on incremental improvements.

Common errors

Warnings

Install

Quickstart

Nano-PDF is primarily a CLI tool. This quickstart demonstrates how to install its system dependencies, configure your Google Gemini API key, and perform basic PDF editing or slide generation using natural language commands.

# 1. Install system dependencies (Poppler and Tesseract OCR)
# macOS:
# brew install poppler tesseract

# Ubuntu/Debian:
# sudo apt-get install poppler-utils tesseract-ocr

# Windows (using Chocolatey):
# choco install poppler tesseract

# 2. Set your Google Gemini API key (requires a PAID API key)
# Replace 'YOUR_GEMINI_API_KEY' with your actual key
export GEMINI_API_KEY="$(os.environ.get('GEMINI_API_KEY', ''))"

# 3. Use Nano-PDF to edit a PDF (replace 'my_document.pdf' and prompt)
# Create a dummy PDF file for testing or use an existing one.
# Example: A PDF with a title on page 1.
nano-pdf edit my_document.pdf 1 "Change the title to 'Q3 2026 Financial Report'"

# Example: Add a new slide
nano-pdf add my_presentation.pdf 5 "Create an agenda slide with three bullet points: Introduction, Key Results, Next Steps"

view raw JSON →