MethodChannelPdfImageRenderer class
An implementation of PdfImageRendererPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- PdfImageRendererPlatform
- MethodChannelPdfImageRenderer
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closePdf(
{required int pdf}) → Future< int?> -
Close a PDF by the given
pdf
identifier.override -
closePdfPage(
{required int pdf, required int page}) → Future< int?> -
Close a PDF page by the given
pdf
identifier and the givenpage
index.override -
getPdfPageCount(
{required int pdf}) → Future< int?> -
Returns the number of pages for the PDF located at given path.
override
-
getPdfPageSize(
{required int pdf, required int page}) → Future< PdfImageRendererPageSize> -
Returns an instance of PdfImageRendererPageSize, holding the width and height in points
of the page at given index of the PDF located at given path.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openPdf(
{required String path}) → Future< int?> -
Open a PDF from the given
path
.override -
openPdfPage(
{required int pdf, required int page}) → Future< int?> -
Open a PDF page by the given
pdf
identifier and the givenpage
index.override -
renderPdfPage(
{required int pdf, required int page, int? x, int? y, int? width, int? height, double? scale, Color background = const Color(0xFFFFFFFF)}) → Future< Uint8List?> -
Converts a given
page
from a givenpdf
to a bitmap.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited