// For complete examples and data files, please go to https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-Java
AnnotationConfig cfg = Utilities.getConfiguration();
AnnotationImageHandler annotator = new AnnotationImageHandler(cfg);
FileInputStream input = new FileInputStream(Utilities.storagePath + File.separator + fileName);
AnnotationInfo[] annotations = annotator.importAnnotations(input, DocumentType.Slides);
// Export imported annotation to another document
InputStream clearDocument = new FileInputStream(Utilities.storagePath + File.separator + "Clear.pptx");
InputStream output = annotator.exportAnnotationsToDocument(clearDocument, Arrays.asList(annotations), DocumentType.Slides);
OutputStream fileStream = new FileOutputStream(Utilities.outputPath + File.separator + "slides-annotated.pptx");
System.out.println(output.available());
IOUtils.copy(output, fileStream);