PresentationRootPackage

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.DocumentRootPackage

public class PresentationRootPackage extends DocumentRootPackage<PresentationPackage>

Represents the root package intended to work with metadata in a presentation.

Learn more


This example shows how to extract built-in metadata properties from a presentation.

```

 try (Metadata metadata = new Metadata(Constants.InputPpt)) {
     PresentationRootPackage root = metadata.getRootPackageGeneric();
     System.out.println(root.getDocumentProperties().getAuthor());
     System.out.println(root.getDocumentProperties().getCreatedTime());
     System.out.println(root.getDocumentProperties().getCompany());
     System.out.println(root.getDocumentProperties().getCategory());
     System.out.println(root.getDocumentProperties().getKeywords());
     System.out.println(root.getDocumentProperties().getLastPrintedDate());
     System.out.println(root.getDocumentProperties().getNameOfApplication());
     // ...
 }
 
```

Methods

Method Description
getPresentationType() Gets the file type metadata package.
getInspectionPackage() Gets a metadata package containing inspection results for the document.
getDocumentStatistics() Gets the document statistics package.

getPresentationType()

public final PresentationTypePackage getPresentationType()

Gets the file type metadata package.

Returns: PresentationTypePackage - The file type metadata package.

getInspectionPackage()

public final PresentationInspectionPackage getInspectionPackage()

Gets a metadata package containing inspection results for the document. The package contains information about document parts that can be considered as metadata in some cases.

Returns: PresentationInspectionPackage - A metadata package containing inspection results for the document.

getDocumentStatistics()

public final DocumentStatistics getDocumentStatistics()

Gets the document statistics package.

Returns: DocumentStatistics - The document statistics package.