Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement