據 AlphaMoat 統計,截至 2026-09,nano-banana-pdf-edit 累計下載 1,828 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 4,558 位,在「辦公效率」分類(435 個)中排名第 360 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 50 | 1774 | 3 | - |
| SkillHub ↗ | 150 | 1828 | 3 | — |
各平台的計數口徑不同,統計時間不一致。
該技能將 PDF 頁面轉換為圖像,傳送到 Google Gemini 進行視覺編輯,再合併回 PDF 並透過 OCR 恢復文字層。它需要相關命令列依賴和付費 Gemini API;頁面圖像及某些流程中的全文可能傳送到 Google。使用前應確認文件允許外部處理,並在安裝依賴、產生付費 API 呼叫或傳送檔案內容前取得明確批准;機密、受監管或客戶文件需遵循資料政策。輸出應檢查視覺效果和 OCR 文字準確度。 文件流程需要 nano-pdf、Poppler、Tesseract 和付費 GEMINI_API_KEY。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 1828 | — | 3 |
| 2026-08 | 1652 | +6.5% | 3 |
| 2026-07 | 1551 | +16.4% | 3 |
| 2026-06 | 1333 | +10.8% | 3 |
| 2026-05 | 1203 | — | 3 |
| 2026-03 | 684 | — | 2 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: nano-pdf-edit
description: Edit PDF files visually using natural language with the nano-pdf CLI tool, powered by Google's Gemini 3 Pro Image (Nano Banana). Use this skill whenever the user wants to edit, modify, or update PDF slides or pages using AI — including fixing typos, updating charts/graphs, changing colors or branding, adding new slides, modifying text, or making any visual change to a PDF deck or report. Also trigger when the user mentions "nano-pdf", "nano pdf", "edit my pdf", "update my slides", "fix my deck", or wants AI-powered changes to PDF content. Even if the user just says "change the title on page 3" or "fix the typo on slide 5" for a PDF file, this skill applies. Do NOT use for extracting text, merging/splitting PDFs, filling forms, or other non-visual PDF operations.
version: 1.0.1
metadata:
openclaw:
requires:
env:
- GEMINI_API_KEY
bins: - python3
primaryEnv: GEMINI_API_KEY
emoji: "📄"
homepage: https://github.com/ps06756/nano-banana-pdf-skill
---
# 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-pdf** — `pip 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
### `nano-pdf edit` — Modify existing pages
```bash
nano-pdf edit <file.pdf> <page> "<prompt>" [<page> "<prompt>" ...] [options]
```
Pages are 1-indexed. Multiple page+prompt pairs can be provided and are processed in parallel.
### `nano-pdf add` — Insert new AI-generated slides
```bash
nano-pdf add <file.pdf> <position> "<prompt>" [options]
```
Position 0 inserts at the beginning. The new slide automatically matches the visual style of the existing deck. Document context is enabled by default for `add`.
## Options Reference
For full details on all available flags, read `references/options.md` in this skill directory.
Key flags:
- `--output "new.pdf"` — Output filename (default: `edited_<original>.pdf`)
- `--resolution "4K"` — `4K` (default), `2K`, or `1K`
- `--style-refs "1,5"` — Pages to use as style references
- `--use-context` / `--no-use-context` — Include full PDF text as model context
- `--disable-google-search` — Prevent model from using Google Search
## Workflow
When a user asks to edit a PDF:
1. **Check dependencies** — Ensure nano-pdf, poppler, tesseract, and GEMINI_API_KEY are available. If any are missing, tell the user what to install and stop.
2. **Identify the edit** — Determine which page(s) need changes and what the prompt should be
3. **Choose the right command** — `edit` for modifying existing pages, `add` for inserting new ones
4. **Pick appropriate options**:
- Use `--style-refs` if the user wants a specific visual style from certain pages
- Use `--use-context` when editing multiple pages that need to be consistent
- Use `--resolution "2K"` if speed matters more than quality
5. **Run nano-pdf** and present the output PDF to the user
## Prompt Writing Tips
The quality of the edit depends heavily on the prompt. Follow these guidelines:
- **Be specific**: "Change the title from 'Overview' to 'Q3 Summary'" beats "update the title"
- **Reference visible elements**: "The bar chart on the left side" helps the model locate what to change
- **One focused change per prompt**: For complex edits, use multiple page+prompt pairs
- **Mention what to preserve**: "Keep the layout the same but change the header color to blue"
- **Use style refs for consistency**: When updating branding across pages, point at a reference page
## Examples
For a comprehensive set of examples covering common use cases (typos, charts, branding, adding slides, batch edits), read `references/examples.md` in this skill directory.
Quick reference:
```bash
# Fix a typo on page 3
nano-pdf edit report.pdf 3 "Fix 'recieve' to 'receive'"
# Update chart data
nano-pdf edit deck.pdf 12 "Update the revenue chart to show Q3 at $2.5M"
# Multi-page branding update
nano-pdf edit slides.pdf \
1 "Change header background to dark blue, text to white" \
2 "Update the logo to show 'NewCorp' instead of 'OldCorp'" \
--style-refs "1" --output branded.pdf
# Add a new title slide at the beginning
nano-pdf add deck.pdf 0 "Title slide: 'Annual Review 2025' with subtitle 'Building the Future'"
# Add a summary slide after page 5 using document context
nano-pdf add deck.pdf 5 "Summary slide with key takeaways as bullet points"
```
## Troubleshooting
| Issue | Solution |
|-------|----------|
| `Missing system dependencies` | Install missing deps (see Prerequisites above), restart terminal |
| `GEMINI_API_KEY not found` | `export GEMINI_API_KEY="your_key"` |
| `PAID API key required` | Enable billing at https://aistudio.google.com/api-keys |
| Style mismatch | Use `--style-refs "1,3"` pointing at pages with desired style |
| Slow processing | Use `--resolution "2K"` or `"1K"` |
| Bad OCR / text layer | Use `--resolution "4K"` for better OCR accuracy |
| Model ignores part of prompt | Break into smaller, focused edits across multiple runs |
透過 MCP 在騰訊文件裡新建、編輯與管理線上文件的完整操作手冊。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
透過命令列存取 Gmail、日曆、Drive、Contacts、Sheets 與 Docs。
PDF和圖片文字提取 將文件文字、表格與掃描頁識別整理為文字結果。
按主題與風格自動生成 PPT 檔案的技能。
透過 kdocs-cli 操作金山文件雲文件的官方技能。
用自然語言指令改 PDF 指定頁的小工具。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。