Remove encryption from a PDF
POST https://api.pdfrest.com/decrypted-pdf
This request demonstrates how to decrypt a password-protected PDF by removing the password and requires that the current password be provided.
The current_open_password
form-data body parameter must be active and set to the correct password.
Documents with a permissions password applied will require that the current_permissions_password
parameter is active and set to the permissions password. Otherwise, the document will forbid any changes to encryption.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"", "datatype"=>"null"}, {"name"=>"current_open_password", "value"=>"current_example_pw", "datatype"=>"string"}, {"name"=>"current_permissions_password", "value"=>"", "datatype"=>"null"}, {"name"=>"output", "value"=>"pdfrest_decrypted_pdf", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Key | string |