operator [] method
Get the permissions.
//Load encrypted PDF document with password.
PdfDocument document = PdfDocument(inputBytes: pdfData, password: 'password');
//Document security
PdfSecurity security = document.security;
//Gets the PDF permission.
PdfPermissions permissions = security.permissions;
//Gets the permission option at index 0.
PdfPermissionsFlags permission = permissions[0];
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Implementation
PdfPermissionsFlags operator [](int index) => _returnValue(index);