SpreadsheetRootPackage
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.DocumentRootPackage
public class SpreadsheetRootPackage extends DocumentRootPackage<SpreadsheetPackage>
Represents the root package allowing working with metadata in a spreadsheet.
Learn more
This code snippet demonstrates how to extract built-in metadata properties from a spreadsheet.
try (Metadata metadata = new Metadata(Constants.InputXlsx)) { SpreadsheetRootPackage 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().getLanguage()); System.out.println(root.getDocumentProperties().getContentType()); // … }
| Method | Description |
|---|---|
| getSpreadsheetType() | Gets the file type metadata package. |
| getInspectionPackage() | Gets a metadata package containing inspection results for the document. |
| getDocumentStatistics() | Gets the document statistics package. |
public final SpreadsheetTypePackage getSpreadsheetType()
Gets the file type metadata package.
Returns: SpreadsheetTypePackage - The file type metadata package.
public final SpreadsheetInspectionPackage 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: SpreadsheetInspectionPackage - A metadata package containing inspection results for the document.
public final DocumentStatistics getDocumentStatistics()
Gets the document statistics package.
Returns: DocumentStatistics - The document statistics package.
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.