PPT · POWERPOINT 97–2003

Legacy PowerPoint
API guide

PowerPoint support centers on binary output. `buildPptFile` serializes a neutral `WDeck` model into an OLE compound file; record helpers support lower-level binary inspection.

IMPLEMENTATION NOTES

What works

The writer emits legacy presentation records from the model in legacy-ppt-writer. Its model includes slides, shapes, text runs, pictures, groups, media, notes, hyperlinks, embedded objects, and selected master styles.

IMPLEMENTATION NOTES

Known limits

This package does not import or render complete PowerPoint presentations. It does not convert a viewer document into WDeck; that conversion belongs to the PowerPoint viewer integration.

QUICK EXAMPLE

Use the supported API

Import the package root unless a subpath is shown in the sample.

Legacy PowerPoint · TypeScript
TypeScript
import { buildPptFile } from '@christophervr/ole2/legacy-ppt-writer';

const bytes = await buildPptFile({
  widthEmu: 9144000,
  heightEmu: 5143500,
  slides: [{ shapes: [] }],
  pictures: [],
});
// Save bytes as a legacy .ppt file.

This guide documents the current package API. Unsupported or unsafe operations are described explicitly; format detection alone does not imply content support.

Back to format overview