public class AllPDFPermissions extends Object
Constructor and Description |
---|
AllPDFPermissions(PasswordPermissions passwordPermissions,
DocMDPPermissions docMDPPermissions,
UsageRightsPermissions usageRightsPermissions)
Construct a new AllPDFPermissions object that encompasses PasswordPermissions, DocMDPPermissions, and UsageRightsPermissions.
|
Modifier and Type | Method and Description |
---|---|
Restrictions |
getAssembleDocumentRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts assembling the document:
|
Restrictions |
getChangeDocumentRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts changing the document:
|
DocMDPPermissions |
getDocMDPPermissions()
Returns the Document Modification Detection and Prevention permissions.
|
Restrictions |
getExtractTextGraphicsForAccessibilityRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts extracting text graphics for accessibility:
|
Restrictions |
getExtractTextGraphicsRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts extracting text graphics:
|
Restrictions |
getFillFormFieldsRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts filling form fields:
|
Restrictions |
getModifyAnnotsRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts modifying annotations:
|
PasswordPermissions |
getPasswordPermissions()
Returns the permission object for this document.
|
Restrictions |
getPrintHighResRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts printing the document at high resolution:
|
Restrictions |
getPrintRestrictions(boolean checkOwnerPassword)
Returns a new Restrictions object that contains information about which type of Permission restricts printing the document:
|
UsageRightsPermissions |
getUsageRightsPermissions()
Returns the Usage Rights permissions.
|
boolean |
isAssembleDocumentAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow assembling the document:
|
boolean |
isChangeDocumentAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow changing the document.
|
boolean |
isCreateModifyFieldsAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow modifying annotations and changing the document.
|
boolean |
isExtractTextGraphicsAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow extracting text graphics from the document.
|
boolean |
isExtractTextGraphicsForAccessibilityAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow extracting text graphics for accessibility from the document.
|
boolean |
isFillFormFieldsAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow filling form field.
|
boolean |
isModifyAnnotsAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow modifying annotations.
|
boolean |
isPrintAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow printing the document.
|
boolean |
isPrintHighResAllowed(boolean checkOwnerPassword)
Returns true if all the document's permissions allow printing the document at high resolution.
|
public AllPDFPermissions(PasswordPermissions passwordPermissions, DocMDPPermissions docMDPPermissions, UsageRightsPermissions usageRightsPermissions)
passwordPermissions
- docMDPPermissions
- usageRightsPermissions
- public boolean isAssembleDocumentAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isChangeDocumentAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isCreateModifyFieldsAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isExtractTextGraphicsAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isExtractTextGraphicsForAccessibilityAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isFillFormFieldsAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isModifyAnnotsAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isPrintAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public boolean isPrintHighResAllowed(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getAssembleDocumentRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getChangeDocumentRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getExtractTextGraphicsRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getExtractTextGraphicsForAccessibilityRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getFillFormFieldsRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getModifyAnnotsRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getPrintRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public Restrictions getPrintHighResRestrictions(boolean checkOwnerPassword)
checkOwnerPassword
- Set to true to check the owner password. If this is true and the
owner's password has been entered, then this permission will be allowed by
PasswordPermissions. However, this permission could still be restricted by other
permission types.public PasswordPermissions getPasswordPermissions()
public DocMDPPermissions getDocMDPPermissions()
public UsageRightsPermissions getUsageRightsPermissions()