Class Configuration.EncryptionSettings
- Enclosing class:
Configuration
A type containing settings related to PDF encryption.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetAllowAnnotations
(boolean allowAnnotations) Enables or disables the 'annotations' restriction in the PDF document.setAllowAssembly
(boolean allowAssembly) Enables or disables the 'assembly' restriction in the PDF document.setAllowCopy
(boolean allowCopy) Enables or disables the 'copy' restriction in the PDF document.setAllowDegradedPrinting
(boolean allowDegradedPrinting) Enables or disables the 'degraded printing' restriction in the PDF document.setAllowFillIn
(boolean allowFillIn) Enables or disables the 'fill in' restriction in the PDF document.setAllowModifyContents
(boolean allowModifyContents) Enables or disables the 'modify contents' restriction in the PDF document.setAllowPrinting
(boolean allowPrinting) Enables or disables the 'printing' restriction in the PDF document.setAllowScreenReaders
(boolean allowScreenReaders) Enables or disables the 'screen readers' restriction in the PDF document.setOwnerPassword
(String ownerPassword) Sets the owner password of the PDF document.Sets the encryption.setUserPassword
(String userPassword) Sets the user password of the PDF document.
-
Constructor Details
-
EncryptionSettings
public EncryptionSettings()
-
-
Method Details
-
setType
Sets the encryption.
Use one of the
Configuration.Encryption
constants to specify the encryption. The default value isConfiguration.Encryption.NONE
.- See Also:
-
setOwnerPassword
Sets the owner password of the PDF document.
-
setUserPassword
Sets the user password of the PDF document.
-
setAllowAnnotations
Enables or disables the 'annotations' restriction in the PDF document.
The default value is
false
. -
setAllowAssembly
Enables or disables the 'assembly' restriction in the PDF document.
The default value is
false
. -
setAllowCopy
Enables or disables the 'copy' restriction in the PDF document.
The default value is
false
. -
setAllowDegradedPrinting
Enables or disables the 'degraded printing' restriction in the PDF document.
The default value is
false
. -
setAllowFillIn
Enables or disables the 'fill in' restriction in the PDF document.
The default value is
false
. -
setAllowModifyContents
Enables or disables the 'modify contents' restriction in the PDF document.
The default value is
false
. -
setAllowPrinting
Enables or disables the 'printing' restriction in the PDF document.
The default value is
false
. -
setAllowScreenReaders
Enables or disables the 'screen readers' restriction in the PDF document.
The default value is
false
.
-