Skip to content

Function: renderPdf()

renderPdf(html, data?, opts?): Promise<Uint8Array<ArrayBufferLike>>

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

Render document HTML to a complete PDF.

Parameters

html

HtmlInput

document content (string | Uint8Array | Readable), never a file path.

data?

RenderData

optional templating data.

opts?

RenderOptions = {}

optional render options (strict defaults to true).

Returns

Promise<Uint8Array<ArrayBufferLike>>