start static method
Starts the platform's worker over bytes (the document image the page
indices passed to record refer to). Native: a long-lived background
isolate that opens its own PdfDocument. Web: a Web Worker over the
script at pdfRenderWorkerScriptUrl when one is configured (by default
the bundled package asset, else a null worker). Platforms without either:
a null worker whose record always defers to local rendering.
With pdfRenderWorkerPoolSize > 1 the backend is a PdfPooledRenderWorker that fans page records across that many platform workers, so a raster-heavy document warms ~NĂ— faster (see that class). Default 3 enables a small pool; set it to 1 for the historical single-worker path.
The backend is wrapped in a PdfCachingRenderWorker so a page the lazy list recycles and rebuilds is served from cache instead of being re-decoded from scratch (see that class), and concurrent requests for one page share a single decode. The cache wraps the whole pool, so it is shared across every worker and is fresh for each document.
Implementation
static PdfRenderWorker start(Uint8List bytes) =>
PdfCachingRenderWorker(_backend(bytes));