com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class CadRootPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>
    Direct Known Subclasses:
    DwgRootPackage, DxfRootPackage


    public abstract class CadRootPackage
    extends RootMetadataPackage

    Represents the root package allowing working with metadata in a CAD drawing.

    Learn more

    This code sample shows how to read metadata of a CAD drawing.

    try (Metadata metadata = new Metadata(Constants.InputDxf)) {
         CadRootPackage root = metadata.getRootPackageGeneric();
         System.out.println(root.getCadPackage().getAcadVersion());
         System.out.println(root.getCadPackage().getAuthor());
         System.out.println(root.getCadPackage().getComments());
         System.out.println(root.getCadPackage().getCreatedDateTime());
         System.out.println(root.getCadPackage().getHyperlinkBase());
         System.out.println(root.getCadPackage().getKeywords());
         System.out.println(root.getCadPackage().getLastSavedBy());
         System.out.println(root.getCadPackage().getTitle());
         // ...
     }
     
    • Method Detail

      • getCadPackage

        public final CadPackage getCadPackage()

        Gets the CAD metadata package.

        Returns:
        The CAD metadata package.