← 返回
未分类 Key 中文

Lock PDF

Add password protection and encryption to a PDF. Supports AES-256, AES-128, RC4-128 encryption and granular permissions.
为 PDF 添加密码保护和加密,支持 AES-256、AES-128、RC4-128 加密以及细粒度权限控制。
rishabhdugar rishabhdugar 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 342
下载
💾 1
安装
1
版本
#latest

概述

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 multipart file upload

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

PermissionDescription
------------------------
printAllow printing
print_highresAllow high-res printing
copyAllow copying text
modifyAllow modifying content
annotateAllow adding annotations
fill_formsAllow filling form fields
extractAllow extracting content
assembleAllow 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"
  }'

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 937 📥 188,061
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 476 📥 158,084
design-media

Generate Image

rishabhdugar
使用无头 Chromium 将 HTML 内容或公开 URL 生成PNG 图片,支持自定义尺寸、Retina 高清、全页面截图以及 Cookie 配置。
★ 0 📥 625