PdfSecurity class Null safety

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 = document.save();
//Dispose the document.
document.dispose();

Properties

algorithm PdfEncryptionAlgorithm
Gets the type of encryption algorithm used. [...]
read / write
encryptionOptions PdfEncryptionOptions
Gets or sets the type of encryption options used. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
ownerPassword String
Gets the owner password. [...]
read / write
permissions PdfPermissions
Gets the permissions when the document is opened with user password. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
userPassword String
Gets the user password. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited