Change a PDF open password
POST https://api.pdfrest.com/encrypted-pdf
This request demonstrates how to change a password for a PDF that is already encrypted.
The new_open_password
form-data body parameter must be active and set to the password to be applied. To change the password on a password-protected document, fill in the current_open_password
parameter.
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"=>"new_open_password", "value"=>"new_example_pw", "datatype"=>"string"}, {"name"=>"current_permissions_password", "value"=>"", "datatype"=>"null"}, {"name"=>"output", "value"=>"pdfrest_encrypted_pdf", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Key | string |