PptFormat Class
Represents a PowerPoint presentation.
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.FormatsFormatBase
    GroupDocs.Metadata.Formats.DocumentDocumentFormatPptMetadata, PptMetadataProperty, DocumentInfo
      GroupDocs.Metadata.Formats.DocumentPptFormat

Namespace: GroupDocs.Metadata.Formats.Document
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 19.5
Syntax
public sealed class PptFormat : DocumentFormat<PptMetadata, PptMetadataProperty, DocumentInfo>, 
	IProtectableFormat, IInspectable<PptInspectionResult, PptInspectionOptions>

The PptFormat type exposes the following members.

Constructors
  NameDescription
Public methodPptFormat(Stream)
Initializes a new instance of the PptFormat class.
Public methodPptFormat(String)
Initializes a new instance of the PptFormat class.
Public methodPptFormat(Stream, LoadOptions)
Initializes a new instance of the PptFormat class.
Public methodPptFormat(String, LoadOptions)
Initializes a new instance of the PptFormat class.
Properties
  NameDescription
Public propertyCode exampleDocumentInfo
Gets a set of statistics calculated for the loaded document.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyDocumentProperties
Gets the metadata properties presented in the document.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyFileType
Gets the file type.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyIsProtected
Returns true if the document is encrypted and requires a password to open.
Public propertyItemString
Gets the MetadataProperty with the specified property name.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyItemMetadataKey
Gets the MetadataProperty with the specified key.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyMIMEType
Gets the MIME type of the loaded file.
(Inherited from FormatBase.)
Public propertyThumbnail
Gets a document thumbnail in the PNG format. The thumbnail is provided only for the first page of the document.
(Inherited from DocumentFormatT, TK, TDi.)
Public propertyType
Gets the type of the loaded file.
(Overrides FormatBaseType.)
Methods
  NameDescription
Public methodCleanMetadata
Removes metadata found in the document.
(Overrides FormatBaseCleanMetadata.)
Public methodClearBuiltInProperties
Resets built-in properties.
(Inherited from DocumentFormatT, TK, TDi.)
Public methodClearCustomProperties
Removes all custom document properties.
(Inherited from DocumentFormatT, TK, TDi.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from FormatBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExtractDocumentProperties
Extracts document metadata properties.
(Inherited from DocumentFormatT, TK, TDi.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMetadata
Gets an array of metadata packages extracted from the file.
(Inherited from FormatBase.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodCode exampleInspectDocument
Inspects the document and returns user comments and hidden slides.
Public methodReadThumbnail
Creates a thumbnail of the document in the PNG format.
(Inherited from DocumentFormatT, TK, TDi.)
Public methodRemoveHiddenData
Removes the hidden data.
Public methodCode exampleSave
Saves all changes made in the loaded file.
(Inherited from FormatBase.)
Public methodCode exampleSave(Stream)
Saves the file content into a stream.
(Inherited from FormatBase.)
Public methodCode exampleSave(String)
Saves the file content to the specified file.
(Inherited from FormatBase.)
Public methodSetProperties
Updates document metadata properties.
(Inherited from DocumentFormatT, TK, TDi.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Examples
Extract presentation properties
C#
using (PptFormat format = new PptFormat(@"D:\input.ppt"))
{   
    Console.WriteLine(format.DocumentProperties.Author);
    Console.WriteLine(format.DocumentProperties.CreatedTime);
    Console.WriteLine(format.DocumentProperties.Subject);

    // ...
}
See Also