count property

int get count

Get the permissions count.

//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 permissions count.
int count = permissions.count;
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();

Implementation

int get count => _permissions.length;