PdfViewerPlatform class abstract

The interface that implementations of syncfusion_flutter_pdfviewer must implement.

Platform implementations should extend this class rather than implement it as syncfusion_flutter_pdfviewer does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added PdfViewerPlatform methods

Inheritance
  • Object
  • PlatformInterface
  • PdfViewerPlatform

Constructors

PdfViewerPlatform()
Constructs a PdfViewerPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeDocument(String documentID) Future<void>
Closes the PDF document.
getImage(int pageNumber, double scale, String documentID) Future<Uint8List?>
Gets the image's bytes information of the specified page.
getPagesHeight(String documentID) Future<List?>
Gets the height of all pages in the document.
getPagesWidth(String documentID) Future<List?>
Gets the width of all pages in the document.
initializePdfRenderer(Uint8List documentBytes, String documentID) Future<String?>
Initializes the PDF renderer instance in respective platform by loading the PDF from the specified path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance PdfViewerPlatform
The default instance of PdfViewerPlatform to use.
getter/setter pair