ProtectPdfOptions.withAllPermissions constructor

ProtectPdfOptions.withAllPermissions({
  1. required String password,
  2. String? ownerPassword,
  3. String encryptionLevel = '256',
})

Create protection options with all permissions allowed

Implementation

factory ProtectPdfOptions.withAllPermissions({
  required String password,
  String? ownerPassword,
  String encryptionLevel = '256',
}) {
  return ProtectPdfOptions(
    password: password,
    ownerPassword: ownerPassword,
    permission: 'all',
    encryptionLevel: encryptionLevel,
    allowPrinting: true,
    allowCopying: true,
    allowEditing: true,
  );
}