PPTX DOCX XLSX PDF ODP
Aspose.Slides  for .NET
OTP

Extract OTP Metadata in C#

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

Extract OTP Metadata Using C#

In order to extract OTP 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

NuGet

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

Command


PM> Install-Package Aspose.Slides.NET

How to Extract Metadata of OTP 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 OTP 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 OTP - C#


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

// 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.otp", Aspose.Slides.Export.SaveFormat.Otp);  
 
  • 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 OTP via Online App

    View & edit Metadata to OTP 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 OTP file & edit document properties
      Instantly get the download link for the resultant file

    OTP What is OTP File Format

    Files with .OTP extension represent presentation template files created by applications in OASIS OpenDocument standard format. The contents of such a file include presentation information in the form of slides with text, images, shapes, multimedia content, transition effects and other slide elements. These template files are used for creating new presentations quickly based on the styling information stored in the template itself. OTP files can be created and saved with several different applications such as Impress that comes with OpenOffice suite and Microsoft PowerPoint. The OTP file format is similar to Microsoft PowerPoint template files .POT and .POTX.

    Read More

    Other Supported Metadata Formats

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

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