Install
openclaw skills install lock-pdfAdd password protection and encryption to a PDF. Supports AES-256, AES-128, RC4-128 encryption and granular permissions.
openclaw skills install lock-pdfEncrypts 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.
password — user password (required to open the PDF)url, base64_pdf, or multipart file uploadSend 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.
| 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 |
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"
}'