Add encryption and/or restrict permissions on a PDF File
Secure a PDF Document with user or/and owner password and set the restrictions on certain features like printing, editing and copying in the PDF document. You can specify the type of content to be encrypted with your specified encryption algorithm.<br><b>All Adobe products enforce the restrictions set by the permissions password. However, if third-party products don’t support these settings, document recipients can bypass some or all of your restrictions.</b>
Request
- Base URL: https://pdf-services-ue1.adobe.io
- URL: https://pdf-services-ue1.adobe.io/operation/protectpdf
- Auth: none declared. Required headers: Authorization, x-api-key
Headers
Bearer + Token (<a href="https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/#step-1--getting-the-access-token">Learn more</a> about getting the access token)
The clientId from the generated credentials
Request body
Example request
{
"assetID": "urn:aaid:AS:UE1:23c30ee0-2c4d-46d6-87f2-087832fca718",
"passwordProtection": {
"ownerPassword": "XXXXXX"
},
"encryptionAlgorithm": "AES_256",
"contentToEncrypt": "ALL_CONTENT",
"permissions": [
"PRINT_HIGH_QUALITY",
"EDIT_CONTENT"
],
"notifiers": [
{
"type": "CALLBACK",
"data": {
"url": "https://dummy.callback.org/",
"headers": {
"x-api-key": "dummykey",
"access-token": "dummytoken"
}
}
}
]
}Response
Request creation for the operation and status uri generated, which can be found in the 'location' header.
Changes
No recorded changes to this operation across all 8 revisions of this API.