NoteRootPackage

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

public class NoteRootPackage extends RootMetadataPackage

Represents the root package intended to work with metadata in an electronic note file.

Learn more

This code sample demonstrates how to inspect a note document.

try (Metadata metadata = new Metadata(Constants.InputOne)) { NoteRootPackage root = metadata.getRootPackageGeneric(); if (root.getInspectionPackage().getPages() != null) { for (NotePage page : root.getInspectionPackage().getPages()) { System.out.println(page.getTitle()); System.out.println(page.getAuthor()); System.out.println(page.getCreationTime()); System.out.println(page.getLastModificationTime()); } } }

Methods

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

getInspectionPackage()

public final NoteInspectionPackage 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: NoteInspectionPackage - 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.