printing library
Classes
- PdfBaseCache
- Store data in a cache
- PdfBaseImageCache
- Store network images in a cache
- PdfGoogleFonts
- Google Fonts
- PdfMemoryCache
- Memory cache
- PdfMemoryImageCache
- Memory image cache
- PdfPageFormatAction
- PdfPageOrientationAction
- PdfPreview
- Flutter widget that uses the rasterized pdf pages to display a document.
- PdfPreviewAction
- Action to add the the PdfPreview widget
- PdfPreviewCustom
- Flutter widget that uses the rasterized pdf pages to display a document.
- PdfPreviewCustomState
- PdfPreviewPageData
- A class that holds rasterized pdf data
- PdfPreviewState
- PdfPrintAction
- PdfRaster
- Represents a bitmap image
- PdfRasterImage
- Image provider for a PdfRaster
- Printer
- Information about a printer
- PrintingInfo
- Capabilities supported for the current platform
- WidgetWraper
- ImageProvider that draws a Flutter Widget on a PDF document
- WidgetWrapper
- ImageProvider that draws a Flutter Widget on a PDF document
Mixins
- PdfPreviewActionBounds
- Printing
- Flutter pdf printing library
Functions
-
flutterImageProvider(
ImageProvider< Object> image, {ImageConfiguration? configuration, ImageErrorListener? onError}) → Future<ImageProvider> -
Loads an image from a Flutter
ImageProvider
into anImageProvider
instance -
fontFromAssetBundle(
String key, {AssetBundle? bundle, bool cache = true, PdfBaseCache? pdfCache, bool protect = false}) → Future< TtfFont> - Loads a font from an asset bundle key. If used multiple times with the same font name, it will be included multiple times in the pdf file
-
imageFromAssetBundle(
String key, {AssetBundle? bundle, bool cache = true, PdfImageOrientation? orientation, double? dpi, PdfBaseCache? pdfCache}) → Future< ImageProvider> - Load an image from an asset bundle key.
-
networkImage(
String url, {bool cache = true, Map< String, String> ? headers, PdfImageOrientation? orientation, double? dpi, PdfBaseCache? pdfCache}) → Future<ImageProvider> - Download an image from the network.
-
pdfDefaultTheme(
) → Future< void>
Typedefs
-
CustomPdfPagesBuilder
= Widget Function(BuildContext context, List<
PdfPreviewPageData> pages) - Custom widget builder that's used for custom rasterized pdf pages rendering
-
LayoutCallback
= FutureOr<
Uint8List> Function(PdfPageFormat format) - Callback used to generate the Pdf document dynamically when the user changes the page settings: size and margins
- OnPdfPreviewActionPressed = void Function(BuildContext context, LayoutCallback build, PdfPageFormat pageFormat)
- Base Action callback