Created
July 24, 2017 08:50
-
-
Save atirtahirgroupdocs/fba9c536bd7efc68a070d6a0a94a2638 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
AnnotationConfig cfg = Utilities.getConfiguration(); | |
AnnotationImageHandler annotator = new AnnotationImageHandler(cfg); | |
List<PageImage> images = annotator.getPages(fileName, new ImageOptions()); | |
for (int i = 0; i < images.size(); i++) { | |
OutputStream fileStream = new FileOutputStream(Utilities.outputPath + File.separator + "image_" + i + ".png"); | |
final PageImage pageImage = images.get(i); | |
IOUtils.copy(pageImage.getStream(), fileStream); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment