📄
AutomationPython

Del4PDF

by CoderWanFeng

Del4PDF 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 Del4PDF
Copy Del4PDF 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/del4pdf ~/.claude/skills/del4pdf

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/del4pdf/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/del4pdf
Collection
One of 50 skills cataloged from this repository
Category
Automation1523 skills

What Del4PDF does

Del4PDF removes specified pages from a PDF file. Use it when you need to delete one or more pages from a document.

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

Documentation

README

del4pdf Skill

删除 PDF 文件中的指定页面

功能描述

从 PDF 文件中删除指定的页面。

所属分类

office/skills/pdf/del4pdf/

调用方式

from skills.pdf import del4pdf

del4pdf(
    input_file='./test.pdf',
    output_file='./deleted.pdf',
    page_nums=[0, 2]
)

参数说明

参数 类型 必填 默认值 说明
input_file str - PDF 文件路径
output_file str - 输出 PDF 文件路径
page_nums list - 要删除的页码列表

返回值

None

使用示例

from skills.pdf import del4pdf
# 删除第 1 页和第 3 页
del4pdf(input_file='./report.pdf', output_file='./new.pdf', page_nums=[0, 2])

视频教程

https://www.python4office.cn/python-office/popdf/%E8%AF%BE%E7%A8%8B/9-del4pdf

原始函数

office.api.pdf.del4pdf

Frequently asked about Del4PDF

  • What else does CoderWanFeng publish alongside Del4PDF?

    Del4PDF 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 Del4PDF 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 Del4PDF compare to other Automation skills?

    Del4PDF ranks #640 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 Del4PDF against them. Open each page to compare what they document and how they install.