Aspose Slides - , , pptx. , , , . Apache POI ppt Java, , pptx.
Update: here is how I extracted images using Aspose. When you have png files, you can create PDF files using other tools. I need images with a clear size - you can just get it as your own size:
Dimension small = new Dimension(160, 120);
Dimension medium = new Dimension(200,150);
Dimension large = new Dimension(400,300);
for (Slide slide : presentation.getSlides()) {
String path = FileService.getUploadPath() + slide.getPath();
com.aspose.slides.Slide pptSlide = ppt.getSlideByPosition(slide.getSequence());
ImageIO.write(pptSlide.getThumbnail(1, 1), "png", new File(path));
path = FileService.getUploadPath() + slide.getSmallPath();
ImageIO.write(pptSlide.getThumbnail(small), "png", new File(path));
path = FileService.getUploadPath() + slide.getMediumPath();
ImageIO.write(pptSlide.getThumbnail(medium), "png", new File(path));
path = FileService.getUploadPath() + slide.getLargePath();
ImageIO.write(pptSlide.getThumbnail(large), "png", new File(path));
}
source
share