Nano pdf

From taracodlabs/aiden · View interactive version

Nano pdf is an AI agent skill from the GitHub repository taracodlabs/aiden. Edit PDFs with natural-language instructions using the nano-pdf CLI tool

How to use this skill

Skill file

nano-pdf — Natural-Language PDF Editing

Use the nano-pdf CLI to perform common PDF operations — merge, split, compress, add watermarks, redact text, and more — via simple natural-language or flag-based commands.

When to Use

How to Use

1. Install nano-pdf

pip install nano-pdf
# Verify installation
nano-pdf --version

2. Merge multiple PDFs

nano-pdf merge report1.pdf report2.pdf appendix.pdf --output merged.pdf

3. Split a PDF into individual pages

# Split every page into a separate file
nano-pdf split document.pdf --output ./pages/

# Split a specific range into a new file
nano-pdf split document.pdf --pages 1-5 --output extract.pdf

4. Compress a PDF

# Default compression
nano-pdf compress large_file.pdf --output compressed.pdf

# Aggressive compression (lower image quality)
nano-pdf compress large_file.pdf --level high --output compressed.pdf

5. Add a watermark

nano-pdf watermark input.pdf --text "CONFIDENTIAL" --output watermarked.pdf
# Custom font size and opacity
nano-pdf watermark input.pdf --text "DRAFT" --size 60 --opacity 0.3 --output draft.pdf

6. Add page numbers

nano-pdf number input.pdf --position bottom-right --output numbered.pdf

7. Remove specific pages

# Remove pages 3 and 7 from a 10-page PDF
nano-pdf remove input.pdf --pages 3,7 --output trimmed.pdf

8. Rotate pages

# Rotate all pages 90 degrees clockwise
nano-pdf rotate input.pdf --degrees 90 --output rotated.pdf

# Rotate only page 2
nano-pdf rotate input.pdf --degrees 180 --pages 2 --output rotated.pdf

9. Extract images from a PDF

nano-pdf extract-images input.pdf --output ./images/

Examples

"Merge contract.pdf and appendix.pdf into one file"

→ Use step 2: nano-pdf merge contract.pdf appendix.pdf --output final_contract.pdf

"Compress this 50MB report so I can email it"

→ Use step 4 with --level high to aggressively reduce size.

"Split the quarterly report — I only need pages 10 to 15"

→ Use step 3 with --pages 10-15.

Cautions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.