PdfImageRenderer class

Renderer for converting PDFs to bitmaps.

Constructors

PdfImageRenderer()

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

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 Methods

closePdf({required int pdf}) Future<int?>
Close a PDF by the given pdf identifier.
closePdfPage({required int pdf, required int page}) Future<int?>
Close a PDF page by the given pdf identifier and the given page index.
getPDFPageCount({required int pdf}) Future<int?>
Returns the number of pages for the PDF located at given path.
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.
openPdf({required String path}) Future<int?>
Open a PDF from the given path.
openPdfPage({required int pdf, required int page}) Future<int?>
Open a PDF page by the given pdf identifier and the given page index.
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 given pdf to a bitmap.