NoteRootPackage
Leave feedback
On this page
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()); } } }
| Method | Description |
|---|---|
| getInspectionPackage() | Gets a metadata package containing inspection results for the document. |
| getDocumentStatistics() | Gets the document statistics package. |
| copyTo(MetadataPackage metadataPackage) |
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.
public final DocumentStatistics getDocumentStatistics()
Gets the document statistics package.
Returns: DocumentStatistics - The document statistics package.
public void copyTo(MetadataPackage metadataPackage)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| metadataPackage | MetadataPackage |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.