VectorPrintImageDecoder typedef

VectorPrintImageDecoder = Future<Map<PdfImageRequest, PdfDecodedPixels>> Function(CosDocument cos, List<PdfImageRequest> requests)

Decodes the RGBA pixels of the images a page references, keyed by request.

The default (decodeVectorPrintImagesPure) is pure Dart, so the encoder runs on a bare VM (tests, CLI, a background isolate). The Flutter app passes a dart:ui-backed resolver that can also decode the platform-codec images (baseline JPEG) the pure path declines.

Implementation

typedef VectorPrintImageDecoder = Future<Map<PdfImageRequest, PdfDecodedPixels>>
    Function(CosDocument cos, List<PdfImageRequest> requests);