This resource represents Password Permissions in a document.
Clear the document's Password Permissions.
DELETE http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/permissions/password-permissions
name | type | description | default |
---|---|---|---|
QSESSIONID | cookie | The session id | n/a |
X-Qoppa-DocumentPassword | header | The document's password. | n/a |
filePath | path | Path to the file to operate on. | n/a |
media type | data type | description |
---|---|---|
application/json | PermissionsModel (JSON) | The password Permissions. |
application/xml | Permissions (XML) |
Get the document's Password Permissions.
GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/permissions/password-permissions
name | type | description | default |
---|---|---|---|
QSESSIONID | cookie | The session id | n/a |
X-Qoppa-DocumentPassword | header | The document's password. | n/a |
filePath | path | Path to the file to operate on. | n/a |
media type | data type | description |
---|---|---|
application/json | PermissionsModel (JSON) | The password Permissions. |
application/xml | Permissions (XML) |
Set Password Permissions on the document. One or both of permissions password or open password must be set in the Password Permissions.
The message body is a PasswordPermissions JSON object.
PUT http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/permissions/password-permissions?newPermissionsPassword=permissionspassword&newOpenPassword=openpassword¤tPermissionsPassword=currentpassword&encryptType=1 Content-Type: application/json (sample JSON) { "encryptType":1, "openPassword":"openPass", "permissionsPassword":"permsPass", "changeDocumentAllowed":false, "assembleDocumentAllowed":false }
name | type | description | default |
---|---|---|---|
QSESSIONID | cookie | The session id | n/a |
X-Qoppa-DocumentPassword | header | The document's password. | n/a |
filePath | path | Path to the file to operate on. | n/a |
media type | data type | description |
---|---|---|
application/json | PasswordPermissionsModel (JSON) | The new Password Permissions. |
application/xml | PasswordPermissions (XML) |
media type | data type | description |
---|---|---|
application/json | PermissionsModel (JSON) | The password Permissions. |
application/xml | Permissions (XML) |