New in v2: editor, export, no jQuery

PowerPoint in the browser.

Render, present, edit and export .pptx files with pure JavaScript. No server, no plugins, one small dependency.

npm install @meshesha/pptxjs

This is PPTXjs rendering Sample_demo1.pptx live, right now.

Everything a presentation needs

PPTXjs reads the Office Open XML format directly: themes, layouts, masters, shapes, text, tables, charts and media.

Viewer and slideshow

Scrolling list or full slideshow with fit-to-screen scaling, keyboard control, fullscreen, autoplay and transitions.

Editor

Move, resize and restyle shapes, edit text inline, add pictures and shapes, manage slides. Full undo/redo.

Export .pptx and .odp

Lossless PowerPoint round trip: what you didn't change stays byte for byte. OpenDocument conversion included.

Charts without d3

Bar, line, area, pie, doughnut and scatter charts drawn as crisp, dependency-free SVG with theme colours.

Right-to-left

Hebrew, Arabic and Persian text with correct punctuation, RTL bullets and numbering, an RTL interface, and auto-detection.

Safe by design

Untrusted files can't inject script. Links are sanitised, zip bombs are rejected, and nothing global is touched.

Works with your stack

A plain class for any page, with first-class bindings for popular frameworks. It also runs in Node.js and Web Workers.

import { PptxViewer } from "@meshesha/pptxjs";

const viewer = new PptxViewer("#slides", { mode: "slideshow" });
await viewer.load("deck.pptx");   // URL, File, Blob or bytes

Upgrading from v1?

Swap nine script tags for one. Existing $(…).pptxToHtml() calls keep working, and you get dozens of bug fixes, security hardening and a much faster renderer.

1runtime dependency (was 6)
up to 7×faster rendering
180+shape types
MITopen source

Migration guide