Package com.dynamicpdf.api
Class Security
java.lang.Object
com.dynamicpdf.api.Security
- Direct Known Subclasses:
Aes128Security
,Aes256Security
,RC4128Security
Base class from which all security classes are derived.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if accessibility programs should be able to read the documents text and images for the user.boolean
Gets if text and images can be copied to the clipboard by the user.boolean
Gets if the document can be assembled and manipulated by the user.boolean
Gets if the document can be edited by the user.boolean
Gets if form filling should be allowed by the user.boolean
Gets if the document can be printed at a high resolution by the user.boolean
Gets if the document can be printed by the user.boolean
Gets if annotations and form fields can be added, edited and modified by the user.Gets the owner password.Gets the user password.void
setAllowAccessibility(boolean value)
Sets if accessibility programs should be able to read the documents text and images for the user.void
setAllowCopy(boolean value)
Sets if text and images can be copied to the clipboard by the user.void
setAllowDocumentAssembly(boolean value)
Sets if the document can be assembled and manipulated by the user.void
setAllowEdit(boolean value)
Sets if the document can be edited by the user.void
setAllowFormFilling(boolean value)
Sets if form filling should be allowed by the user.void
setAllowHighResolutionPrinting(boolean value)
Sets if the document can be printed at a high resolution by the user.void
setAllowPrint(boolean value)
Sets if the document can be printed by the user.void
setAllowUpdateAnnotsAndFields(boolean value)
Sets if annotations and form fields can be added, edited and modified by the user.void
setOwnerPassword(String value)
Sets the owner password.void
setUserPassword(String value)
Sets the user password.
-
Method Details
-
getAllowCopy
public boolean getAllowCopy()Gets if text and images can be copied to the clipboard by the user.- Returns:
- If text and images can be copied to the clipboard by the user.
-
setAllowCopy
public void setAllowCopy(boolean value)Sets if text and images can be copied to the clipboard by the user.- Parameters:
value
- If text and images can be copied to the clipboard by the user.
-
getAllowEdit
public boolean getAllowEdit()Gets if the document can be edited by the user.- Returns:
- If the document can be edited by the user.
-
setAllowEdit
public void setAllowEdit(boolean value)Sets if the document can be edited by the user.- Parameters:
value
- If the document can be edited by the user.
-
getAllowPrint
public boolean getAllowPrint()Gets if the document can be printed by the user.- Returns:
- If the document can be printed by the user.
-
setAllowPrint
public void setAllowPrint(boolean value)Sets if the document can be printed by the user.- Parameters:
value
- If the document can be printed by the user.
-
getAllowUpdateAnnotsAndFields
public boolean getAllowUpdateAnnotsAndFields()Gets if annotations and form fields can be added, edited and modified by the user.- Returns:
- If annotations and form fields can be added, edited
-
setAllowUpdateAnnotsAndFields
public void setAllowUpdateAnnotsAndFields(boolean value)Sets if annotations and form fields can be added, edited and modified by the user.- Parameters:
value
- If annotations and form fields can be added, edited
-
getOwnerPassword
Gets the owner password.- Returns:
- The owner password.
-
setOwnerPassword
Sets the owner password.- Parameters:
value
- The owner password.
-
getUserPassword
Gets the user password.- Returns:
- The user password.
-
setUserPassword
Sets the user password.- Parameters:
value
- The user password.
-
getAllowAccessibility
public boolean getAllowAccessibility()Gets if accessibility programs should be able to read the documents text and images for the user.- Returns:
- If accessibility programs should be able to read
-
setAllowAccessibility
public void setAllowAccessibility(boolean value)Sets if accessibility programs should be able to read the documents text and images for the user.- Parameters:
value
- If accessibility programs should be able to read
-
getAllowFormFilling
public boolean getAllowFormFilling()Gets if form filling should be allowed by the user.- Returns:
- If form filling should be allowed by the user.
-
setAllowFormFilling
public void setAllowFormFilling(boolean value)Sets if form filling should be allowed by the user.- Parameters:
value
- If form filling should be allowed by the user.
-
getAllowHighResolutionPrinting
public boolean getAllowHighResolutionPrinting()Gets if the document can be printed at a high resolution by the user.- Returns:
- If the document can be printed at a high resolution by the user.
-
setAllowHighResolutionPrinting
public void setAllowHighResolutionPrinting(boolean value)Sets if the document can be printed at a high resolution by the user.- Parameters:
value
- If the document can be printed at a high resolution by the user.
-
getAllowDocumentAssembly
public boolean getAllowDocumentAssembly()Gets if the document can be assembled and manipulated by the user.- Returns:
- If the document can be assembled and manipulated by the user.
-
setAllowDocumentAssembly
public void setAllowDocumentAssembly(boolean value)Sets if the document can be assembled and manipulated by the user.- Parameters:
value
- If the document can be assembled and manipulated by the user.
-