Printing mixin
Flutter pdf printing library
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
-
convertHtml(
{required String html, String? baseUrl, PdfPageFormat format = PdfPageFormat.standard}) → Future< Uint8List> - Convert an html document to a pdf data
-
directPrintPdf(
{required Printer printer, required LayoutCallback onLayout, String name = 'Document', PdfPageFormat format = PdfPageFormat.standard, bool dynamicLayout = true, bool usePrinterSettings = false, OutputType outputType = OutputType.generic, bool forceCustomPrintPaper = false}) → FutureOr< bool> - Prints a Pdf document to a specific local printer with no UI
-
info(
) → Future< PrintingInfo> - Returns a PrintingInfo object representing the capabilities supported for the current platform
-
layoutPdf(
{required LayoutCallback onLayout, String name = 'Document', PdfPageFormat format = PdfPageFormat.standard, bool dynamicLayout = true, bool usePrinterSettings = false, OutputType outputType = OutputType.generic, bool forceCustomPrintPaper = false}) → Future< bool> - Prints a Pdf document to a local printer using the platform UI the Pdf document is re-built in a LayoutCallback each time the user changes a setting like the page format or orientation.
-
listPrinters(
) → Future< List< Printer> > - Enumerate the available printers on the system.
-
pickPrinter(
{required BuildContext context, Rect? bounds, String? title}) → Future< Printer?> - Opens the native printer picker interface, and returns the URL of the selected printer.
-
raster(
Uint8List document, {List< int> ? pages, double dpi = PdfPageFormat.inch}) → Stream<PdfRaster> - Convert a PDF to a list of images.
- Displays a platform popup to share the Pdf document to another application.