Render and edit PowerPoint (.pptx) files in Node.js or the browser. pptx-glimpse converts slides
to SVG or PNG in-process, without Microsoft Office or LibreOffice.
Try the demo · Read the documentation
npm install pptx-glimpseNode.js 22 or later is required for Node.js usage and package tooling.
import { readFile, writeFile } from "node:fs/promises";
import { convertPptxToPng } from "pptx-glimpse";
const pptx = await readFile("presentation.pptx");
const { slides, diagnostics } = await convertPptxToPng(pptx);
await writeFile("slide-1.png", slides[0].png);
console.log(diagnostics);For SVG output, selected slides, browser font loading, and conversion reports, see
Rendering presentations. Complete signatures and
options are available for
convertPptxToPng,
convertPptxToSvg, and
ConvertOptions.
createPptxEditorSession provides an integrated read, edit, rerender, history, and save workflow.
See Editing presentations for supported commands and a
complete example. The API reference documents
createPptxEditorSession,
PptxEditorSession, and every
EditorCommand payload.
| Package | Use it when you need to… |
|---|---|
pptx-glimpse |
Render slides or build an integrated editing flow |
@pptx-glimpse/document |
Read, author, edit, or write PPTX document data directly |
@pptx-glimpse/editor |
Add validated commands and history to a headless application |
Most applications should start with pptx-glimpse. The
package guide explains the package boundaries and
dependency direction.
- Getting started
- Why pptx-glimpse
- Rendering presentations
- Editing presentations
- Using fonts
- Browser usage
- Node.js usage
- Feature support
- API Reference
See the development setup guide for repository setup, common validation commands, and the local editor preview.
MIT
