com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class NoteRootPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public class NoteRootPackage
    extends RootMetadataPackage

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

    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());
             }
         }
     }
     
    • Method Detail

      • 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:
        A metadata package containing inspection results for the document.