pdf_split

Extract specified pages from PDFs into new files using PyPDF2.

38|14|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/ericwang915/PythonClaw --skill pdf-split-ericwang915
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf_split
Source: https://github.com/ericwang915/PythonClaw/tree/main/pythonclaw/templates/skills/data/pdf_split
Command: npx skills add https://github.com/ericwang915/PythonClaw --skill pdf-split-ericwang915

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyPDF2.

What problem does it solve?

This skill splits a PDF into separate files by page ranges, enabling targeted extractions and modular document handling to save time on manual page selection.

Core Features & Use Cases

  • Page-range splitting: produce new PDFs from specific page ranges or individual pages.
  • Flexible outputs: support per-page outputs, chunks, and a default single output with a chosen prefix.
  • Real-world scenario: prepare a 10-page appendix by exporting pages 2-7 into a separate file for review.

Quick Start

Provide a PDF file and a page range to produce a new PDF containing only those pages.

Frequently Asked Questions about pdf_split

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split a PDF by specific page ranges using Python?

To split a PDF by page ranges, this skill uses PyPDF2 to extract specified pages into new files via a CLI with options like --pages, enabling targeted extraction of invoices or reports.

Can I extract every page of a PDF into separate files in batch?

Yes, you can extract each page into a separate file using the --each command line option, which handles batch processing for modular document handling and per-page outputs.

Do I need PyPDF2 installed to run this PDF splitting tool?

Yes, PyPDF2 is a required dependency to run this PDF splitting tool, as the CLI relies on it to identify and extract pages from the source document into new files.

What is the best way to split a large e-book PDF into chunks?

The best way to split an e-book PDF into chunks is using the --every option, which divides the document into continuous page ranges for modular review and export.

Does this Python PDF splitter provide error handling for missing pages?

Yes, this Python PDF splitter includes basic error handling during the page extraction process and can output operational results in either JSON or text format.