📄
AutomationPython

Split PDF

by CoderWanFeng

Split PDF is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars301 forkson CoderWanFeng/python-officeAdded 2026/08/12Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install Split PDF
Copy Split PDF into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/pdf/split4pdf ~/.claude/skills/split4pdf

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/pdf/split4pdf/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/split4pdf
Collection
One of 50 skills cataloged from this repository
Category
Automation1523 skills

What Split PDF does

Split PDF removes a specified page range from a PDF into a separate file. Use it when you need to split, cut, or extract pages from a PDF document.

Split PDF is cataloged under Automation on DirSkills. Split PDF comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

split4pdf Skill

拆分 PDF 文件

功能描述

按指定页码范围拆分 PDF 文件。

所属分类

office/skills/pdf/split4pdf/

调用方式

from skills.pdf import split4pdf

split4pdf(
    input_file='./test.pdf',
    output_file='./split.pdf',
    from_page=0,
    to_page=5
)

参数说明

参数 类型 必填 默认值 说明
input_file str - PDF 文件路径
output_file str './output_path/split_pdf.pdf' 输出拆分后的 PDF 文件路径
from_page int -1 起始页码(-1 表示从第一页开始)
to_page int -1 结束页码(-1 表示到最后一页结束)

返回值

None

使用示例

from skills.pdf import split4pdf
# 拆分第 1-5 页
split4pdf(input_file='./report.pdf', output_file='./part1.pdf', from_page=0, to_page=4)

视频教程

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Split PDF

  • What else does CoderWanFeng publish alongside Split PDF?

    Split PDF is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way Split PDF does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does Split PDF compare to other Automation skills?

    Split PDF ranks #667 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Split PDF against them. Open each page to compare what they document and how they install.