Last active
September 2, 2019 10:28
-
-
Save GroupDocsGists/e1687eb8fde3c98d44280cf29bc5769b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create image handler | |
ViewerImageHandler imageHandler = new ViewerImageHandler(config); | |
String guid = DocumentName; | |
CadDocumentInfoContainer documentInfo = (CadDocumentInfoContainer)imageHandler.getDocumentInfo(guid); | |
// Loop through all layers contained in the drawing | |
for (CadLayer layer : documentInfo.getLayers()) | |
System.out.println("Layer name: "+ layer.getName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment