cpdf_permissions_info.dart 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ///
  2. /// Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
  3. ///
  4. /// THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  5. /// AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  6. /// UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  7. /// This notice may not be removed from this file.
  8. class CPDFPermissionsInfo {
  9. bool allowsPrinting;
  10. bool allowsHighQualityPrinting;
  11. bool allowsCopying;
  12. bool allowsDocumentChanges;
  13. bool allowsDocumentAssembly;
  14. bool allowsCommenting;
  15. bool allowsFormFieldEntry;
  16. CPDFPermissionsInfo(
  17. this.allowsPrinting,
  18. this.allowsHighQualityPrinting,
  19. this.allowsCopying,
  20. this.allowsDocumentChanges,
  21. this.allowsDocumentAssembly,
  22. this.allowsCommenting,
  23. this.allowsFormFieldEntry);
  24. CPDFPermissionsInfo.formJson(Map<String, dynamic> json)
  25. : allowsPrinting = json['allowsPrinting'],
  26. allowsHighQualityPrinting = json['allowsHighQualityPrinting'],
  27. allowsCopying = json['allowsCopying'],
  28. allowsDocumentChanges = json['allowsDocumentChanges'],
  29. allowsDocumentAssembly = json['allowsDocumentAssembly'],
  30. allowsCommenting = json['allowsCommenting'],
  31. allowsFormFieldEntry = json['allowsFormFieldEntry'];
  32. }