🔒
AutomationPython

Encrypt PDF

by CoderWanFeng

Encrypt 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 Encrypt PDF
Copy Encrypt 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/encrypt4pdf ~/.claude/skills/encrypt4pdf

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

What Encrypt PDF does

Encrypt PDF adds a password to a PDF file for protection. Use it when you need to lock a PDF with a user password or generate a password-protected copy.

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

Documentation

README

encrypt4pdf Skill

加密 PDF 文件

功能描述

对 PDF 文件进行加密处理,设置用户密码保护 PDF 文件。

所属分类

office/skills/pdf/encrypt4pdf/

调用方式

from skills.pdf import encrypt4pdf

encrypt4pdf(
    password='123456',
    input_file='./test.pdf',
    output_file='./encrypted.pdf'
)

参数说明

参数 类型 必填 默认值 说明
password str - 加密密码
input_file str - 输入 PDF 文件名(包含路径)
output_file str - 输出的加密 PDF 文件名(包含路径)
input_path str - 输入文件的完整路径(另一种传入方式)
output_path str - 输出文件的完整路径(另一种传入方式)

返回值

None

使用示例

from skills.pdf import encrypt4pdf
encrypt4pdf(password='mypassword', input_file='./report.pdf', output_file='./encrypted.pdf')

视频教程

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

Frequently asked about Encrypt PDF

  • What else does CoderWanFeng publish alongside Encrypt PDF?

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

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