Skip to content

Function: renderPdf() ​

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

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

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; template: false skips templating for HTML that is already rendered).

Returns ​

Promise<Uint8Array<ArrayBufferLike>>