PdfSecurity class

ISO 32000-1 §7.6 Standard security handler (Rev 2–4, plus Rev 5/6 AES-256).

Properties

aes → bool
True when strings/streams use AES (Rev 4+).
final
canAnnotate → bool
canAnnotate API.
no setter
canCopy → bool
canCopy API.
no setter
canModify → bool
canModify API.
no setter
canPrint → bool
canPrint API.
no setter
encryptMetadata → bool
encryptMetadata API.
final
filter → String
Security handler name.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Uint8List
File encryption key.
final
permissions → int
/P permission bits.
final
revision → int
revision API.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decrypt(Uint8List data, int id, int gen) → Uint8List
Decrypts a string or stream for id/gen.
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

Static Methods

open(PdfCosDict encrypt, PdfCos? id0, {String? password}) → PdfSecurity?
None when the trailer has no /Encrypt.