Skip to content
FunCoding

nano-pdf

CLI wrapper for nano-pdf binary to edit PDF files. Provides page manipulation capabilities including extraction, rotation, and reordering.

Star
859
Last commit
Aug 20, 2026

skills/nano-pdf/SKILL.md

View on GitHub

Nano PDF

CLI wrapper for the nano-pdf binary to edit PDF files.


Installation

uv tool install nano-pdf

Or via pip:

pip install nano-pdf

Usage

Edit PDF Pages

nano-pdf edit <input.pdf> <output.pdf> <operations...>

Page Operations

OperationDescriptionExample
extractExtract specific pagesextract:1-5
rotateRotate pagesrotate:90:1-3
deleteRemove pagesdelete:2,4,6
reorderReorder pagesreorder:3,1,2
duplicateDuplicate pagesduplicate:1:2

Examples

Extract Pages 1-5

nano-pdf edit input.pdf output.pdf extract:1-5

Extract Multiple Ranges

nano-pdf edit input.pdf output.pdf extract:1-3,7,10-12

Rotate Pages 90 Degrees

nano-pdf edit input.pdf output.pdf rotate:90:1-5

Delete Pages

nano-pdf edit input.pdf output.pdf delete:2,4,6

Combine Operations

nano-pdf edit input.pdf output.pdf extract:1-10 rotate:90:1-5

Page Numbering

  • Pages are 1-indexed (first page is 1)
  • Use - for ranges: 1-5 means pages 1 through 5
  • Use , for multiple pages: 1,3,5 means pages 1, 3, and 5
  • Combine: 1-3,7,10-12

When to Use This Skill

  • Extract specific pages from a PDF
  • Rotate PDF pages
  • Delete unwanted pages
  • Reorder PDF pages
  • Quick PDF manipulation without GUI tools

Notes

  • Always verify output before overwriting originals
  • Works best with standard PDF files
  • May have issues with encrypted PDFs

Safety

  • Only run on trusted PDF files
  • Verify output correctness on non-sensitive files first
  • Keep backups of important documents

Similar Skills

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills181k1,119 new stars in the last 7 days