Skip to content

exportPdf()

function exportPdf(doc, options?): Promise<Uint8Array<ArrayBufferLike>>;

Renders a layout document to PDF bytes. Runs entirely in the browser (or Node). pdf-lib is loaded on first use.

Parameter Type
doc LayoutDocument
options PdfExportOptions

Promise<Uint8Array<ArrayBufferLike>>