Skip to Content
Anuma SDKReactPdf ExportexportElementToPdf

exportElementToPdf

exportElementToPdf(element: HTMLElement, options?: PdfExportOptions): Promise<Blob>

Defined in: src/lib/pdf-export.ts:325 

Capture a rendered HTML element as a high-fidelity PDF.

Uses renderElementToCanvas for the DOM snapshot, then embeds the canvas image into a jsPDF document. Multi-page content is automatically split.

Parameters

ParameterType

element

HTMLElement

options?

PdfExportOptions

Returns

Promise<Blob>

Last updated on