Unrestrict PDF
POST https://api.pdfrest.com/unrestricted-pdf
Remove security restrictions from a PDF that were applied using a permissions password. By default, this will remove all security restrictions (including encryption) that were password protected.
Required form-data body parameters:
- One of:
file
- File to be uploaded and processedid
- Alphanumeric ID (UUID) of existing file on server to be processed
current_permissions_password
- Permissions password on the document.
Optional form-data body parameters:
output
- File name for the output file (without extension)current_open_password
- An existing open password. Removing security from a PDF will ordinarily remove encryption in addition to other security restrictions. By supplying the correct password here, the output document will remain encrypted.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "datatype"=>"string"}, {"name"=>"output", "value"=>"pdfrest_restricted_pdf", "datatype"=>"string"}, {"name"=>"current_permissions_password", "value"=>"example_perms_pw", "datatype"=>"string"}, {"name"=>"current_open_password", "value"=>"example_open_pw", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Key | string |