pptx-glimpse

High-level PPTX rendering and editing toolkit for SVG/PNG output in Node.js and the browser.


Keywords
pptx, powerpoint, svg, png, converter, editor, browser, typescript, pptx-viewer, presentation, slides
License
MIT
Install
npm install pptx-glimpse@5.3.0

Documentation

pptx-glimpse

npm CI License: MIT Node.js

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

pptx-glimpse browser rendering and editing demo

Install

npm install pptx-glimpse

Node.js 22 or later is required for Node.js usage and package tooling.

Render a presentation

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.

Edit a presentation

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.

Choose a package

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.

Documentation

Contributing

See the development setup guide for repository setup, common validation commands, and the local editor preview.

License

MIT