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
| Parameter | Type |
|---|---|
|
|
|
|
|
Returns
Promise<Blob>
Last updated on