Skip to main content

Function: exportAndDownloadSlidesToPDF()

exportAndDownloadSlidesToPDF(source, filename, options?): Promise<void>

Defined in: src/export/SlideDeckExporter.ts:240

Export a slide deck to a PDF and download it in the browser.

Degrades without throwing: when no document is available (worker, headless, SSR) it logs a warning and returns. An empty deck is a no-op (no download).

Parameters​

source​

SlideDeckSource

The slide source (a Player works directly)

filename​

string = 'slides.pdf'

The download filename. Defaults to 'slides.pdf'.

options?​

SlidePdfExportOptions

Export options

Returns​

Promise<void>