Skip to main content

Removing security from a PDF

Removing security from a PDF will allow you to unset a user password.

If you need to modify the current permissions of a PDF, take a look at the adding security example. You can view the full Swagger documentation here.

Request

curl --location 'https://pdf-api.doclabs.cloud/api/v1/MyDocument.pdf/security/unprotect?storageName=MyBucketName' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••' \
--data '{
"ownerPassword": "MyStrongPassword"
}'

Response

{
"bucketName": "MyBucketName",
"contentPathName": "CopyOfTheOriginal.pdf"
}