Skip to main content

Interface: SlidePptxExportOptions

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

Options for exportSlidesToPPTX.

Properties​

background?​

optional background: string

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

Slide background color as a hex string (no leading '#'), for example 'FFFFFF'.


captureSlide?​

optional captureSlide: SlideCapturer

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

DI: per-slide frame capturer. Default seeks and reads canvas.toDataURL.


onProgress()?​

optional onProgress: (progress) => void

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

Progress callback in [0, 1].

Parameters​

progress​

number

Returns​

void


pptxFactory?​

optional pptxFactory: PptxFactory

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

DI: presentation factory. Default optionally imports pptxgenjs.


slideHeight?​

optional slideHeight: number

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

Slide height in inches. Default 7.5 (16:9 wide).


slideWidth?​

optional slideWidth: number

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

Slide width in inches. Default 13.333 (16:9 wide).


still?​

optional still: "first" | "last"

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

Which still of each slide to capture: 'first' or 'last' frame. Default 'last'.