StreamPageContext
streamFlow — incremental page-by-page PDF generation with bounded memory. See docs/design/streaming.md for the rationale.
Interface StreamPageContext
interface StreamPageContextstreamFlow — incremental page-by-page PDF generation with bounded memory. See docs/design/streaming.md for the rationale.
Reuses everything from renderFlow except the byte-serialization step. Pages are rendered, their delta refs are serialized to a writable, and page-local refs are freed before the next page renders. Compressible dicts are batched into pdf-lib's PDFObjectStream; the xref is a PDFCrossRefStream — keeps streamed output within ~5-15% of renderFlow's default size.
Properties
pageNumber
numberCurrent page number, 1-indexed.