Skip to main content
The deck. Open or create one, then edit it through slides, slideMasters and the other collections. Concepts explains the model.

PowerPointPresentation

Office.js-shaped facade over a .pptx (PowerPoint.Presentation). Handles are live element references and every edit applies at once: there is no load()/sync() protocol. Members Office.js lacks are marked as extensions. Import from @reductoai/pptx/officejs.

PowerPointPresentation properties

PowerPointPresentation.create()

A deck with no slides on PowerPoint’s default Office Theme (16:9).

PowerPointPresentation.fromBytes()

PowerPointPresentation.applySlideMaster()

Extension (VBA SlideRange.Design): a master already in the deck on the given slides (all when absent).

PowerPointPresentation.applyTemplateFromBase64()

Extension (VBA ApplyTemplate): the first master of a .pptx or .potx, with its layouts and theme, on the given slides (all when absent). Each slide moves to the layout of its type, or of its name for a custom one; a layout with no match is copied. A master no slide uses is dropped. Returns the master’s id.

PowerPointPresentation.insertSlidesFromBase64()

Office.js queues the insert; the facade resolves once it is done, with the new slides’ ids. Without formatting the slides keep their source master and theme.

PowerPointPresentation.toBytes()

Node additions

PowerPointPresentation.create() (node)

A deck with no slides on PowerPoint’s default Office Theme (16:9).

PowerPointPresentation.fromBytes() (node)

PowerPointPresentation.open() (node)

PowerPointPresentation.save() (node)

Writes to path; the facade never writes the source file in place.

PowerPointPresentation.toPdf() (node)

Lays out the current edit state and paints it; writes path when given.

PowerPointPresentation.toPng() (node)

One PNG per slide (or per pages, zero-based), from the same IR as toPdf.

ToPdfOptions

Import from @reductoai/pptx/node.

ToPngOptions

Import from @reductoai/pptx/node.

PageSetup

PowerPoint.PageSetup: the slide size in points. Import from @reductoai/pptx/officejs.

PageSetup properties

PageSetup.resize()

Extension (Design > Slide Size): sets the size in points and maps every slide onto it. EnsureFit shrinks content to fit a smaller slide; Maximize keeps it large and lets it run past an edge. Layouts and masters stretch to the new size.