capabilities.work

Protect a PDF With a Password

A 4-step recipe with Adobe. We can help you get access.

Recipe · 4 steps

Protect a PDF With a Password

with Adobe

Add password protection and encryption to an uploaded PDF.

  1. Request a pre-signed upload URI and asset ID for the source PDF, which is then PUT to the returned uploadUri out of band.
  2. Submit an asynchronous protectPDF job that password-protects the uploaded PDF. Returns 201 with an in-progress job status.
  3. Poll the protectPDF job until it is no longer in progress, looping back while the status remains "in progress".
  4. Resolve a pre-signed download URI for the protected output PDF.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token from Adobe IMS.
  • userPassword: Password required to open the protected PDF.
  • ownerPassword: Password required to change permissions or remove protection.
  • encryptionAlgorithm: Encryption algorithm to apply (AES_128 or AES_256).
  • jobID: The job identifier taken from the protectPDF response Location header, used to poll status.
For your developer

Arazzo workflow adobe:protect-pdf, 4 operations: asset.uploadpresignedurl → pdfoperations.protectpdf → getJobStatus → getAsset. Specs on APIs.io.