Show HN: Nano PDF – A CLI Tool to Edit PDFs with Gemini's Nano Banana
176 points| GavCo | 3 months ago |github.com
Examples:
- `nano-pdf edit deck.pdf 5 "Update the revenue chart to show Q3 at $2.5M"`
- `nano-pdf add deck.pdf 15 "Create an executive summary slide with 5 bullet points"`
Features:
- Edit multiple pages in parallel
- Add entirely new slides that match your deck's style
- Google Search enabled by default so the model can look up current data
- Preserves text layer for copy/paste and search
It can work with any kind of PDF but I expect it would be most useful for a quick edit to a deck or something similar.
tecoholic|3 months ago
Does this mean the text only pdf page is transformed into an image that covers the full page, but the text is still under there. So, any machine based extraction would still get the text, but would probably loose all the bounding box information and regular users cannot just use their mouse to select text anymore?
kumarm|3 months ago
My Text to Speech app uses bounding box to display what text in PDF is being read and would not work well PDF's from this project.
lxe|3 months ago
thenthenthen|3 months ago
shevis|3 months ago
falcor84|3 months ago
moezd|3 months ago
Many thanks to humanity for failing to standardise PDF and this project for paying interest on that tech debt with datacenter levels of energy consumption.
treetalker|3 months ago
struc_so|3 months ago
Does this approach rewrite the entire file structure on save, or are you appending incremental updates to the EOF? Incremental is safer for corruption, but file size bloats quickly with AI-generated diffs.
perfectritone|3 months ago
jimmySixDOF|2 months ago
itsmevictor|3 months ago
mentalgear|3 months ago
yoavm|3 months ago
ThrowawayTestr|3 months ago
tkfoss|3 months ago
iamflimflam1|3 months ago
Has anyone given any it a go? Does it work?
stingraycharles|3 months ago
I haven’t tried it, but there are plenty of examples.
McNulty2|3 months ago
toddmorey|3 months ago
albert_e|3 months ago
mlpoknbji|3 months ago
ohans|2 months ago
informal007|3 months ago
vood|3 months ago
John7878781|3 months ago
After several iterations of edits, would the image quality decrease?
Zopieux|3 months ago
I wish an agent with a validation and rendering tools could instead manipulate the structure to accomplish those edits way less destructively, checking its progress with the tools.
mertleee|3 months ago
[deleted]
sultson|3 months ago
[deleted]