com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class DiagramRootPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    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 Detail

      • getDiagramType

        public final DiagramTypePackage getDiagramType()

        Gets the file type metadata package.

        Returns:
        The file type metadata package.
      • getDocumentStatistics

        public final DocumentStatistics getDocumentStatistics()

        Gets the document statistics package.

        Returns:
        The document statistics package.