The package’s relationships lead to the property parts, in docProps/. They
are the same as in other Office Open XML files.
Core properties
docProps/core.xml, reached through a
core-properties relationship: dc:title,
dc:subject, dc:creator, cp:keywords,
dc:description, cp:lastModifiedBy, cp:revision,
dcterms:created, dcterms:modified and
cp:category.
Application properties
docProps/app.xml, reached through an extended-properties
relationship. Fields that matter for a presentation include
Application, AppVersion, Company,
Template, TotalTime (in minutes), Words,
PresentationFormat, Slides, Notes and
HiddenSlides. These counts are written by the application and can be
out of date.
Custom properties
docProps/custom.xml holds any further named values a user or program has set.
Presentation fields, rules and divergences
Sources read: ECMA-376 5th edition Part 1 (research/ooxml/ecma376/p1/part1.txt) 22.2.2.9-22.2.2.28 (the extended properties used here:
HiddenSlides, HLinks, HyperlinkBase, HyperlinksChanged, LinksUpToDate,
Manager, MMClips, Notes, PresentationFormat, Properties, ScaleCrop,
SharedDoc, Slides, Template, TotalTime); MS-OI29500 2.1.1723; python-pptx
opc/constants.py (research/pptx/src/). The core, custom and extended parts themselves, with their content types,
variant types and the other 22.2 elements, are described on the
DOCX properties page, which was compared with Part 1 15.2.12, Part 2 8.2-8.3 and 22.2-22.4
and applies unchanged to a presentation.
| Element | Meaning in a presentation |
|---|---|
Slides | Total number of slides (xsd:int), 22.2.2.24. |
Notes | Number of slides that contain notes, not the number of notes parts (22.2.2.17). |
HiddenSlides | Number of hidden slides (22.2.2.9). |
MMClips | Total number of sound or video clips in the file (22.2.2.16). |
PresentationFormat | The intended format, free text; a presentation meant for video has "Video" (22.2.2.20). |
Template, Manager | Name of the external template the file was made from; name of a supervisor (22.2.2.25, 22.2.2.15). |
TotalTime | Total editing time (22.2.2.27); the standard allows any integer, but Office does not allow a negative value (MS-OI29500 2.1.1723). |
ScaleCrop | True: the thumbnail is scaled to the display; false: it is cropped to show only what fits (22.2.2.22). |
HyperlinkBase, HLinks, HyperlinksChanged, LinksUpToDate | The base for relative links; the links as they were at the last save; a flag that the next producer must refresh the relationships from this part; a flag that the links are current (22.2.2.10-22.2.2.14). |
SharedDoc | The file is shared between several producers and should be updated with care (22.2.2.23). |
Divergence from spec
- The standard says
Pages,LinesandParagraphsapply "if applicable";Slides,NotesandHiddenSlideshave no such wording, but all are only what the producer wrote at its last save, and a file can state counts that do not match its parts, so a reader should count parts when it matters. - For string values the standard says invalid XML characters are written in the
_xHHHH_form (22.2.2.21), the same escape as in slide text. - python-pptx’s
opc/constants.pylists content types and relationship types for core (OPC_CORE_PROPERTIES,CORE_PROPERTIES), extended (lines 38-39, 243-244) and custom properties (lines 33, 220); only the constants were read, so what python-pptx does with the extended and custom parts is not stated here. Apache POI’s property class is described on the DOCX properties page; it also covers the presentation counts above. No MS-OI29500 note other than 2.1.1723 was found for these elements. - python-pptx’s core-properties class (
research/pptx/src/pptx-oxml-coreprops.py, every line read) differs from the file format in what it does with values, not in what it accepts. Text properties are limited to 255 characters on writing (lines 273 to 280), and an absent element reads as the empty string (lines 282 to 288). The revision reads as 0 when absent, not a number or negative (lines 140 to 157) and is only written as a positive integer (lines 159 to 166). Dates are read as W3CDTF in the formsyyyy,yyyy-mm,yyyy-mm-ddandyyyy-mm-ddThh:mm:sswith an optional±hh:mmoffset, and are converted to UTC by that offset; a date it cannot read is ignored, not reported (lines 192 to 254). Dates are written asyyyy-mm-ddThh:mm:ssZ, andcreatedandmodifiedgetxsi:type="dcterms:W3CDTF"(lines 256 to 271). It models the fifteen core elements: category, contentStatus, created, creator, description, identifier, keywords, language, lastModifiedBy, lastPrinted, modified, revision, subject, title and version (lines 27 to 43). The explorer lists what the part contains and does not limit lengths.