Aspose.Slides  for .NET

Extract PPSM Metadata in C#

Build your own .NET apps to add, edit, remove or extract metadata from PPSM files using server-side APIs.

Extract PPSM Metadata Using C#

In order to extract PPSM metadata, we’ll use

Aspose.Slides for .NET

API which is a feature-rich, powerful and easy to use document metadata API for C# platform. Open


package manager, search for Aspose.Slides and install. You may also use the following command from the Package Manager Console.


PM> Install-Package Aspose.Slides.NET

How to Extract Metadata of PPSM via C#

IDocumentProperties class represents the document properties associated with a presentation file. Developers can use this property to access the metadata as described below.

  1. Instantiate the Presentation class with path to PPSM file

  2. Get DocumentProperties object associated with Presentation

  3. Loop over the items in DocumentProperties object

  4. Access and modify custom properties

System Requirements

Aspose.Slides for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Slides for .NET referenced in your project.

Extract Metadata of PPSM - C#

// instantiate the Presentation class with path to PPSM file
var presentation = new Aspose.Slides.Presentation("template.ppsm");

// get DocumentProperties object associated with the Presentation object
var properties = presentation.DocumentProperties;

// access and modify custom properties
for (int i = 0; i < properties.CountOfCustomProperties; i++)
    // display names and values of custom properties
    System.Console.WriteLine("Custom Property Name : " + properties.GetCustomPropertyName(i));
    System.Console.WriteLine("Custom Property Value : " + properties[properties.GetCustomPropertyName(i)]);

    // modify values of custom properties
    properties[properties.GetCustomPropertyName(i)] = "New Value " + (i + 1);

// save your presentation to a file
presentation.Save("output.ppsm", Aspose.Slides.Export.SaveFormat.Ppsm);  
  • About Aspose.Slides for .NET API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Extract Metadata of PPSM via Online App

    View & edit Metadata to PPSM documents by using our Live Demos with following benefits.

      No need to download or setup anything
      No need to write any code
      Just upload your PPSM file & edit document properties
      Instantly get the download link for the resultant file

    PPSM What is PPSM File Format

    Files with PPSM extension represent Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Another similar file format is PPTM which differs in opening with Microsoft PowerPoint in editable format instead of running as Slide Show. When run as slide show, the PPSM file shows the presentation slides with contents intact in the slide show and is in read-only mode by default. PPSM files can still be edited in Microsoft PowerPoint by opening it in PowerPoint.

    Read More

    Other Supported Metadata Formats

    Using C#, One can also manipulate metadata of many other formats including.

    ODP (OpenDocument Presentation Format)
    OTP (OpenDocument Standard Format)
    POT (Microsoft PowerPoint Template Files)
    POTM (Microsoft PowerPoint Template File)
    POTX (Microsoft PowerPoint Template Presentation)
    PPS (PowerPoint Slide Show)
    PPSX (PowerPoint Slide Show)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (Macro-enabled Presentation File)
    PPTX (Open XML presentation Format)