Show HN: Nano PDF – A CLI Tool to Edit PDFs with Gemini's Nano Banana

https://news.ycombinator.com/rss Hits: 18
Summary

Nano PDF Editor A CLI tool to edit PDF slides using natural language prompts, powered by Google's Gemini 3 Pro Image ("Nano Banana") model. Features Natural Language Editing : "Update the graph to include data from 2025", "Change the chart to a bar graph". : "Update the graph to include data from 2025", "Change the chart to a bar graph". Add New Slides : Generate entirely new slides that match your deck's visual style. : Generate entirely new slides that match your deck's visual style. Non-Destructive : Preserves the searchable text layer of your PDF using OCR re-hydration. : Preserves the searchable text layer of your PDF using OCR re-hydration. Multi-page & Parallel: Edit multiple pages in a single command with concurrent processing. How It Works Nano PDF uses Gemini 3 Pro Image (aka Nano Banana) and PDF manipulation to enable quick edits of PDFs with natural language editing: Page Rendering: Converts target PDF pages to images using Poppler Style References: Optionally includes style reference pages with generation request to understand visual style (fonts, colors, layout) AI Generation: Sends images + prompts to Gemini 3 Pro Image, which generates edited versions OCR Re-hydration: Uses Tesseract to restore searchable text layer to generated images PDF Stitching: Replaces original pages with AI-edited versions while preserving document structure The tool processes multiple pages in parallel for speed, with configurable resolution (4K/2K/1K) to balance quality vs. cost. Installation pip install nano-pdf Configuration You need a paid Google Gemini API key with billing enabled. Free tier keys do not support image generation. Get an API key from Google AI Studio Enable billing on your Google Cloud project Set it as an environment variable: export GEMINI_API_KEY= " your_api_key_here " Note: This tool uses Gemini 3 Pro Image which requires a paid API tier. See pricing for details. Usage Basic Edit Edit a single page (e.g., Page 2): nano-pdf edit my_deck.pdf 2 " Change ...

First seen: 2025-11-29 21:45

Last seen: 2025-11-30 14:47