public class AllPDFPermissions extends Object
Constructor and Description |
---|
AllPDFPermissions(PasswordPermissions passwordPermissions,
DocMDPPermissions docMDPPermissions,
UsageRightsPermissions usageRightsPermissions,
SignaturePermissions signaturePermissions)
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:
|
SignaturePermissions |
getSignaturePermissions()
Returns permissions related to a digital signature.
|
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.
|
static boolean |
isEnforceDocMDPPermissions()
Returns true if Doc MDP permissions will be enforced.
|
static boolean |
isEnforceSignaturePermissions()
Returns true if signature permissions will be enforced.
|
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.
|
static void |
setEnforceDocMDPPermissions(boolean enforce)
Sets the flag to enforce or ignore DocMDP permissions.
|
static void |
setEnforceSignaturePermissions(boolean enforce)
Sets the flag to enforce or ignore signature permissions.
|
public AllPDFPermissions(PasswordPermissions passwordPermissions, DocMDPPermissions docMDPPermissions, UsageRightsPermissions usageRightsPermissions, SignaturePermissions signaturePermissions)
passwordPermissions
- The password permissions.docMDPPermissions
- The DocMDP permissions.usageRightsPermissions
- The usage rights permissions.signaturePermissions
- The signature permissions.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()
public SignaturePermissions getSignaturePermissions()
public static void setEnforceSignaturePermissions(boolean enforce)
enforce
- Set to true to enforce signature permissions or false to ignore them. The default value is true.public static boolean isEnforceSignaturePermissions()
public static void setEnforceDocMDPPermissions(boolean enforce)
enforce
- Set to true to enforce Doc MDP permissions or false to ignore them. The default value is true.public static boolean isEnforceDocMDPPermissions()