Hi team we are facing a particular issue while processing a pptx file in our system through Aspose
Below is the screenshot of it which we get from Aspose:-
MicrosoftTeams-image (4).jpg (39.0 KB)
Original Document Screenshot :-
MicrosoftTeams-image (5).jpg (34.4 KB)
Below is a sample code snippet that we are using with the original document for reference:-
Code:-
{
Presentation presentation = new Presentation(this.FilePath);
int desiredX = 1200;
int desiredY = 800;
// Gets scaled values of X and Y
float ScaleX = (float) (1.0 / presentation.getSlideSize().getSize().getWidth()) * desiredX;
float ScaleY = (float) (1.0 / presentation.getSlideSize().getSize().getHeight()) * desiredY;
for (ISlide slide : presentation.getSlides()) {
BufferedImage bmp = slide.getThumbnail(ScaleX, ScaleY);
ImageIO.write(bmp, “JPEG”, new java.io.File(imagePath));
}
}
Original Document:-
PPTX_Reprocess.zip (525.7 KB)