cpdf_document.dart 1011 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  2. //
  3. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  4. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  5. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  6. // This notice may not be removed from this file.
  7. /// A class to handle PDF documents without using [CPDFReaderWidget]
  8. ///
  9. /// example:
  10. /// ```dart
  11. /// var document = CPDFDocument();
  12. /// document.open('pdf file path', 'password');
  13. ///
  14. /// /// get pdf document info.
  15. /// var info = await document.getInfo();
  16. ///
  17. /// /// get pdf document file name.
  18. /// var fileName = await document.getFileName();
  19. /// ```
  20. class CPDFDocument {
  21. // late MethodChannel _channel;
  22. //
  23. // bool _isValid = false;
  24. //
  25. // CPDFDocument.withController(int viewId)
  26. // : _channel = MethodChannel('com.compdfkit.flutter.document_$viewId'),
  27. // _isValid = true;
  28. }