Change security restrictions for a PDF

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

This request demonstrates how to modify security restrictions for a PDF that already has a permissions password applied.

To make changes to a document that is already protected by a permissions password, use the current_permissions_password form-data field set to the correct password.

New restrictions may be applied by setting a restrictions[] form-data body parameter for each restriction to apply to your document. Select from any of the following:

  • printlow_ (forbids all printing)
  • printhigh_ (forbids high-quality printing)
  • editdocumentassembly
  • editfillandsignformfields_
  • editannotations_
  • editcontent_
  • copycontent_
  • accessibilityoff_

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"", "datatype"=>"null"}, {"name"=>"new_permissions_password", "value"=>"new_example_pw", "datatype"=>"string"}, {"name"=>"restrictions[]", "value"=>"print_high", "datatype"=>"string"}, {"name"=>"restrictions[]", "value"=>"copy_content", "datatype"=>"string"}, {"name"=>"current_permissions_password", "value"=>"current_example_pw", "datatype"=>"string"}, {"name"=>"current_open_password", "value"=>"", "datatype"=>"null"}, {"name"=>"output", "value"=>"pdfrest_restricted_pdf", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Api-Keystring