Introduction
PPTX is the default format of
Microsoft PowerPoint
since PowerPoint 2007, replacing the older binary
.ppt. It is the presentation part
of Office Open XML (ECMA-376 and ISO/IEC 29500): a ZIP archive with one XML part per
slide, plus the layouts and masters the slides are built on, speaker notes, themes and
media.
.pptm is the same layout with macros, .potx a template, and
.ppsx a show that opens straight
into the slide show. See macros and
templates.
Structure
ppt/presentation.xml
lists the slides in order and sets the slide size. Each slide, such as
ppt/slides/slide1.xml, is a tree
of shapes holding text, pictures and charts. A slide is based on a layout in
ppt/slideLayouts/, and each layout on a master in
ppt/slideMasters/, so placeholders inherit their position and style.
Relationship files next to each part link it to its layout, notes and media. The pages in
the side menu cover the package and
each part in turn.
zip[Content_Types].xml, _rels/.relsXMLzipppt/presentation.xml slide order and sizeXMLzipppt/slides/ one part per slideXMLzipppt/slideLayouts/, ppt/slideMasters/, ppt/theme/XMLzipppt/notesSlides/ speaker notesXMLzipppt/media/ pictures, audio and videomedia
In the explorer
Drop a PowerPoint file on this site’s explorer to see inside it. The file stays in your browser: nothing is uploaded. Slides draws the first slide and lists every slide, with a page of thumbnails; each opens on its own, and notes pages and the handout master can be drawn too. Slides are drawn with their shapes, text, fonts, colours and pictures, inherited from their layouts, masters and theme. Outline shows each slide’s text, pictures, tables, notes and comments in presentation order, and Text the same as plain text. Overview lists the properties, slides, sections, theme, transitions and animations, Media the pictures and other files, and Parts the package’s parts and relationships. Structure shows the ZIP archive.
Drawing is done here, not by PowerPoint, so a few things are approximate. Fonts that the viewer’s machine does not have are replaced by similar ones, so text can wrap a little differently. Shadows, glows, 3-D, pattern fills and some effects are simplified, and a few rarely used preset shapes are drawn as their nearest simple outline. Charts are drawn from the numbers in the chart part, in the same kinds PowerPoint would use, and SmartArt from the drawing PowerPoint writes for it. Linked pictures are only named: nothing is fetched from the network. Animations are listed, not played. Macros are listed and never run.
What this reference covers
These pages cover the package, the presentation part, slides and shapes, text, layouts and masters, notes, comments, themes, media, properties, macros and the Strict form. They do not give every element and attribute of PresentationML or DrawingML; for those, see ECMA-376. ECMA-376 Part 1, [MS-PPTX] and [MS-OI29500] were downloaded for this work but not read line by line: there is no tool here that extracts a PDF’s text page by page.
Not described
Tested on 101 Apache POI test files, 22 files from cloud folders and 27 from the knowledge folder on this Mac: no failures. These items are still open.
Known, not yet covered
- Reference: the animation timing tree (
p:timing) element by element, the chart and diagram schemas in full, table styles, and the effect, 3-D and scene properties of DrawingML: ECMA-376 Part 1 and [MS-PPTX]. - Viewer: the Comments table lists at most the first 5,000 comments (replies included); a longer table says so in its title.
- Viewer: shapes are drawn from outlines written for this viewer that follow the standard’s preset shapes and default adjust values, not its formulas line by line (the ECMA geometry definitions were downloaded but not used); curved, bent and circular arrows, ribbons, scrolls, clouds, gears, text-warp shapes and action-button symbols are drawn as the nearest simple outline (the viewer counts those it approximated).
- Viewer: only the outer shadow of an effect list is drawn, as the outline moved by its distance, without blur. Glow, reflection, soft edges, 3-D, tiled fills, picture recolouring (duotone, transparency) and text effects are not drawn.
- Viewer: SmartArt is drawn from the drawing part PowerPoint stores beside it, not laid out from the data model; if that part is missing the diagram is named. Charts are drawn in the common kinds from their cached numbers.
- Viewer: animations are listed and not played; hyperlinks are listed and not clickable on the slide; OLE objects show their preview picture; ink, equations and 3-D models are not drawn.
Unknown
- Viewer: no real
.potm,.ppsmor.sldxfile was found, and the only.potxand.ppsxfiles are Apache POI’s test files; the rest are tested as built cases.
Links
Software
- Microsoft PowerPoint – Microsoft’s presentation program, which uses PPTX by default (Windows, macOS, web, mobile)
- LibreOffice Impress – free office suite’s presentation program, which opens and saves PPTX (Windows, macOS, Linux)
- Google Slides – online presentation program that imports and exports PPTX (web browsers)
- Apple Keynote – Apple’s presentation program, which imports and exports PPTX (macOS, iOS)
- ONLYOFFICE – office suite built around the Office Open XML formats (Windows, macOS, Linux, web)
Developers
- python-pptx – library that reads and writes PPTX (Python)
- Apache POI – library for Office files, PPTX through its XSLF classes (Java)
- Open XML SDK – Microsoft’s library for Office Open XML packages (.NET)
Reference
- ECMA-376 Office Open XML File Formats – Ecma International’s standard for DOCX, XLSX and PPTX