We are using aspose slides java 21.5 version to convert pptx documents to pdf in our java applications.
It is seen that one of the images in original pptx is missing in the pdf generated from Aspose
Below is the sample code used to convert ppt to pdf in our application=
{
com.aspose.slides.License pptLicense = new com.aspose.slides.License();
pptLicense.setLicense(“C:\export\rschapps\rschdistpreview\config\Aspose.Total.Java.lic”);
String inputPptPath = “C:\export\rschapps\rschdistengine\workarea-prod\30020750\ppt_to_pdf_input.pptx”;
String outputPdfPath = “C:\export\rschapps\rschdistengine\workarea-prod\30020750\ppt_to_pdf_output.pdf”;
com.aspose.slides.PdfOptions pptPdfSaveOpts = new com.aspose.slides.PdfOptions();
pptPdfSaveOpts.setSufficientResolution(296);
pptPdfSaveOpts.setApplyImageTransparent(false);
pptPdfSaveOpts.setJpegQuality((byte) 100);
Presentation ppt = new Presentation(new FileInputStream(inputPptPath));
ppt.save(outputPdfPath,SaveFormat.Pdf,pptPdfSaveOpts);
}
Please find attached input ppt and output pdf for your reference:
ppt_to_pdf_conversion.zip (356.5 KB)