Decrypt PDF

POST https://api.pdfrest.com/decrypted-pdf

Remove encryption from a PDF. Encrypted PDFs cannot be decrypted without first providing the open password (and permissions password, if applied previously).

Required form-data body parameters:

  • One of:
    • file - File to be uploaded and processed
    • id - Alphanumeric ID (UUID) of existing file on server to be processed
  • current_open_password - Open password that was applied to the document. Decrypting the document will remove the open password.
  • current_permissions_password - Required if the encrypted document is additionally protected by a permissions password.

Optional parameters:

  • output - File name for output document (without extension)

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "datatype"=>"string"}, {"name"=>"output", "value"=>"pdfrest_encrypted_pdf", "datatype"=>"string"}, {"name"=>"current_open_password", "value"=>"example_open_pw", "datatype"=>"string"}, {"name"=>"current_permissions_password", "value"=>"example_perms_ps", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Api-Keystring