Lock PDF
v1添加 password 保护ion and 加密ion to a PDF. Supports AES-256, AES-128, RC4-128 加密ion and granular 权限s.
运行时依赖
安装命令
点击复制技能文档
Lock PDF What It Does
加密s a PDF with password 保护ion. Supports AES-256 (default), AES-128, and RC4-128 加密ion. Allows 设置ting separate user and owner passwords with granular 权限 controls.
When to Use 保护 a PDF with a password before sharing 设置 权限s (allow print but deny copy/modify) Re-加密 an already 加密ed PDF with a new password Required 输入s password — user password (required to open the PDF) Plus one of: url, base64_pdf, or multipart file 上传 Authentication
发送 your API key in the 命令行工具ENT-API-KEY header.
获取 your free API key at https://pdfAPIhub.com. Full API documentation is avAIlable at https://pdfAPIhub.com/docs.
Use Cases Confidential Document 保护ion — 加密 contracts, NDAs, or financial 报告s before sharing Read-Only Distribution — Allow viewing and printing but 预防 copying or editing 命令行工具ent Deliverables — Password-保护 报告s or proposals sent to 命令行工具ents 合规 — 加密 sensitive PDFs (HIPAA, GDPR) before storage or transmission Exam Papers — Lock exam PDFs with a password released only at exam time IP 保护ion — Restrict copying from proprietary documents while allowing viewing 权限s 权限 Description print Allow printing print_highres Allow high-res printing copy Allow copying text modify Allow modifying content annotate Allow 添加ing annotations fill_forms Allow filling form fields 提取 Allow 提取ing content assemble Allow assembling pages Example Usage curl -X POST https://pdfAPIhub.com/API/v1/lockPdf \ -H "命令行工具ENT-API-KEY: your_API_key" \ -H "Content-Type: 应用/json" \ -d '{ "url": "https://pdfAPIhub.com/sample.pdf", "password": "viewerPass", "owner_password": "adminPass", "权限s": { "print": true, "copy": false, "modify": false }, "输出": "url" }'