We are using java application to generate PDF renditions from Presentation files using Aspose-slides
It is noted that while running a simple 5MB pptx file conversion to pdf; the memory requirement for the application is >20GB(XmX)
Below is the code used to convert pptx to pdf
{
com.aspose.slides.PdfOptions pptPdfSaveOpts = new PdfOptions();
pptPdfSaveOpts.setSufficientResolution(296);
pptPdfSaveOpts.setApplyImageTransparent(false);
pptPdfSaveOpts.setJpegQuality((byte) 100);
Presentation ppt = new Presentation(new FileInputStream(wordFile));
ppt.save(outputPdfFilePath,SaveFormat.Pdf,pdfOptions);
}
Kindly advise on how the memory utilization can be optimized without compromising quality.