The same package format has six extensions. They differ in the main part’s content type: a template, a slide show that opens straight into the show, and forms of each that may hold macros.
| Extension | Holds |
|---|---|
.pptx | A presentation. |
.pptm | A presentation with macros. |
.ppsx | A slide show. |
.ppsm | A slide show with macros. |
.potx | A template. |
.potm | A template with macros. |
The VBA project
A macro-enabled file has a part, usually ppt/vbaProject.bin, reached through
a relationship of type
http://schemas.microsoft.com/office/2006/relationships/vbaProject from the
presentation part, with the content type
application/vnd.ms-office.vbaProject. It is a compound file that holds the
VBA modules, compressed, as specified in [MS-OVBA].
The explorer notes that a project is there. It never runs a macro.
Content types and divergences
Sources read: ECMA-376 5th edition Part 1 (research/ooxml/ecma376/p1/part1.txt) 13.3.6 (presentation part; a search for
macroEnabled and vbaProject in the whole of Part 1 found nothing); python-pptx opc/constants.py lines 64-95;
Apache POI XSLFRelation.java lines 43-65 (research/pptx/src/). [MS-OVBA] itself was not read for this page, and
[MS-PPTX], which defines the macro-enabled content types, is not in the research folder.
| Extension | Main part content type | Where defined |
|---|---|---|
.pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml | Part 1 13.3.6 |
.ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml | Part 1 13.3.6 |
.potx | application/vnd.openxmlformats-officedocument.presentationml.template.main+xml | Part 1 13.3.6 |
.pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.main+xml | python-pptx line 70, POI line 63-65 |
.ppsm | application/vnd.ms-powerpoint.slideshow.macroEnabled.main+xml | POI line 47-49 |
.potm | application/vnd.ms-powerpoint.template.macroEnabled.main+xml | POI line 51-53 |
- Part 1 allows exactly one presentation part per package, as the target of the package relationship of type
officeDocument, with root elementpresentation; the three content types differ only in what the file is for, so the root element and layout are the same for all six extensions.
Divergence from spec
- Part 1 knows only the three main content types above and has no macro-enabled type, no VBA project part and no relationship type for one;
the three
macroEnabledtypes and thevbaProjectpart come from Microsoft’s extension specifications. Statements on this page about the VBA part rest on [MS-OVBA] and on those implementations, not on Part 1. - python-pptx has a constant for the
.pptmtype only (no.ppsmor.potm). POI’sXSLFRelationnames its constants unevenly:MACROis the macro-enabled slide show type,PRESENTATIONMLis the plain slide show type, andMAINis the presentation type.
Reference
- [MS-OVBA] – Microsoft’s specification of the VBA project format