PdfSecurity class
Represents the security settings of the PDF document.
//Create a new PDF document.
PdfDocument document = PdfDocument();
//Document security
PdfSecurity security = document.security;
//Set security options
security.algorithm = PdfEncryptionAlgorithm.rc4x128Bit;
security.userPassword = 'password';
security.ownerPassword = 'syncfusion';
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Properties
- algorithm ↔ PdfEncryptionAlgorithm
-
Gets the type of encryption algorithm used.
getter/setter pair
- encryptionOptions ↔ PdfEncryptionOptions
-
Gets or sets the type of encryption options used.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- ownerPassword ↔ String
-
Gets the owner password.
getter/setter pair
- permissions → PdfPermissions
-
Gets the permissions when the document is opened with user password.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userPassword ↔ String
-
Gets the user password.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited