Skip to content

Function: renderPdfToStream()

renderPdfToStream(html, writable, data?, opts?): Promise<void>

Defined in: packages/vellora/src/render.ts:215

Render document HTML and write the complete PDF to writable, then end it.

Input is fully buffered; the complete PDF is produced via the native render path and then written. Resolves only after the complete PDF is written. A writable error rejects and aborts. (Page-by-page progressive emission awaits a future native streaming surface.)

Parameters

html

HtmlInput

writable

Writable

data?

RenderData

opts?

RenderOptions = {}

Returns

Promise<void>