Lock PDF
/install lock-pdf
Lock PDF
What It Does
Encrypts a PDF with password protection. Supports AES-256 (default), AES-128, and RC4-128 encryption. Allows setting separate user and owner passwords with granular permission controls.
When to Use
- Protect a PDF with a password before sharing
- Set permissions (allow print but deny copy/modify)
- Re-encrypt an already encrypted PDF with a new password
Required Inputs
password— user password (required to open the PDF)- Plus one of:
url,base64_pdf, or multipartfileupload
Authentication
Send your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
Use Cases
- Confidential Document Protection — Encrypt contracts, NDAs, or financial reports before sharing
- Read-Only Distribution — Allow viewing and printing but prevent copying or editing
- Client Deliverables — Password-protect reports or proposals sent to clients
- Compliance — Encrypt sensitive PDFs (HIPAA, GDPR) before storage or transmission
- Exam Papers — Lock exam PDFs with a password released only at exam time
- IP Protection — Restrict copying from proprietary documents while allowing viewing
Permissions
| Permission | Description |
|---|---|
print |
Allow printing |
print_highres |
Allow high-res printing |
copy |
Allow copying text |
modify |
Allow modifying content |
annotate |
Allow adding annotations |
fill_forms |
Allow filling form fields |
extract |
Allow extracting content |
assemble |
Allow assembling pages |
Example Usage
curl -X POST https://pdfapihub.com/api/v1/lockPdf \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://pdfapihub.com/sample.pdf",
"password": "viewerPass",
"owner_password": "adminPass",
"permissions": { "print": true, "copy": false, "modify": false },
"output": "url"
}'
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lock-pdf - 安装完成后,直接呼叫该 Skill 的名称或使用
/lock-pdf触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Lock PDF 是什么?
Add password protection and encryption to a PDF. Supports AES-256, AES-128, RC4-128 encryption and granular permissions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。
如何安装 Lock PDF?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lock-pdf」即可一键安装,无需额外配置。
Lock PDF 是免费的吗?
是的,Lock PDF 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lock PDF 支持哪些平台?
Lock PDF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lock PDF?
由 Rishabh Dugar(@rishabhdugar)开发并维护,当前版本 v1.0.0。