Skip to content

Function: createPresentation() ​

createPresentation<Fs>(opts?): Composed<Fs>

Compose a presentation from the construct families it needs, on the Node adapter.

The counterpart to TsPptx, which is composed with every family there is. This one costs what it carries: the core tier (text, shapes, images, groups, speaker notes) plus whatever use names, and nothing else reaches the bundle.

Type Parameters ​

Type ParameterDefault type
Fs extends readonly ConstructFamily[][]

Parameters ​

ParameterTypeDescription
opts?ComposeOptions<Fs>the families to compose in, from pptx-ts/families

Returns ​

Composed<Fs>

Example ​

ts
import { createPresentation } from 'pptx-ts/node'
import { charts } from 'pptx-ts/families'
const pres = createPresentation({ use: [charts] })