PdfImageRendererPdf class

PDF according to a PdfImageRenderer to convert it to a bitmap.

Constructors

PdfImageRendererPdf({required String path})
Construct a new renderer PDF by a given path.

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

close() Future<void>
Closes the PDF.
closePage({required int pageIndex}) Future<void>
Close an open PDF page with given index. Index is starting with 0. PDF and PDF page must be opened before, by using the open and openPage methods.
getPageCount() Future<int>
Returns the number of pages of the PDF. PDF must be opened with the open method before.
getPageSize({required int pageIndex}) Future<PdfImageRendererPageSize>
Gets the PdfImageRendererPageSize by the given pageIndex.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
Open the PDF by the path this PdfImageRendererPdf was initialized with.
openPage({required int pageIndex}) Future<void>
Open a PDF page with given index. Index is starting with 0. PDF must be opened with the open method before.
renderPage({int pageIndex = 0, int? x, int? y, int? width, int? height, double? scale, Color background = const Color(0xFFFFFFFF)}) Future<Uint8List?>
Converts a page with the given pageIndex to a bitmap.
toString() String
A string representation of this object.
inherited

Operators

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