DiagramRootPackage
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 DiagramRootPackage extends DocumentRootPackage<DiagramPackage>
Represents the root package intended to work with metadata in a diagram.
Learn more
This code sample demonstrates how to extract built-in metadata properties from a diagram.
try (Metadata metadata = new Metadata(Constants.InputVsdx)) { DiagramRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getDocumentProperties().getCreator()); System.out.println(root.getDocumentProperties().getCompany()); System.out.println(root.getDocumentProperties().getKeywords()); System.out.println(root.getDocumentProperties().getLanguage()); System.out.println(root.getDocumentProperties().getTimeCreated()); System.out.println(root.getDocumentProperties().getCategory()); // … }
| Method | Description |
|---|---|
| getDiagramType() | Gets the file type metadata package. |
| getDocumentStatistics() | Gets the document statistics package. |
public final DiagramTypePackage getDiagramType()
Gets the file type metadata package.
Returns: DiagramTypePackage - The file type metadata package.
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.