Package com.dynamicpdf.api
Class RC4128Security
java.lang.Object
com.dynamicpdf.api.Security
com.dynamicpdf.api.RC4128Security
Represents RC4 128 bit PDF document security.
RC4 128 bit PDF security, with UseCryptFilter property set to false is compatible with PDF version 1.4 or higher and can be read with Adobe Acrobat Reader version 5 or higher. By default UseCryptFilter property is false. RC4 128 bit PDF security with crypt filter is compatible with PDF version 1.5 or higher and can be read with Adobe Acrobat Reader version 6 and higher. Older readers will not be able to read document encrypted with this security.
-
Constructor Summary
ConstructorDescriptionRC4128Security(String userPassword, String ownerPassword)
Initializes a new instance of theRC4128Security
class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the documents components to be encrypted.void
setEncryptMetadata(boolean value)
Sets the documents components to be encrypted.Methods inherited from class com.dynamicpdf.api.Security
getAllowAccessibility, getAllowCopy, getAllowDocumentAssembly, getAllowEdit, getAllowFormFilling, getAllowHighResolutionPrinting, getAllowPrint, getAllowUpdateAnnotsAndFields, getOwnerPassword, getUserPassword, setAllowAccessibility, setAllowCopy, setAllowDocumentAssembly, setAllowEdit, setAllowFormFilling, setAllowHighResolutionPrinting, setAllowPrint, setAllowUpdateAnnotsAndFields, setOwnerPassword, setUserPassword
-
Constructor Details
-
RC4128Security
Initializes a new instance of theRC4128Security
class.- Parameters:
userPassword
- The owner password to open the document.ownerPassword
- The user password to open the document.
-
-
Method Details
-
getEncryptMetadata
public boolean getEncryptMetadata()Gets the documents components to be encrypted.- Returns:
- The documents components to be encrypted.
-
setEncryptMetadata
public void setEncryptMetadata(boolean value)Sets the documents components to be encrypted.- Parameters:
value
- The documents components to be encrypted.
-