We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image missing in PDF while converting Presentation to PDF

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)

@jinesh.parikhmca1983,
Thank you for the issue description. I reproduced the problem and logged the issue with ID SLIDESJAVA-38555 in our tracking system. Our development team will investigate this case. You will be notified when it is fixed.

@Andrey_Potapov
Is there any update on the above ticket ?

@jinesh.parikhmca1983,
The problem you described will be fixed in Aspose.Slides 21.8 that will be released in the second half of August.

The issues you have found earlier (filed as SLIDESJAVA-38555) have been fixed in this update.