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

Free Support Forum - aspose.com

PPT/PPTX to PDF - Not working with basic java program

Hi, We are evaluating Aspose for PPT/PPTX to PDF using java.

With the following basic code while converting a sample PPT/PPTX to pdf we are getting PDF file after conversion, but while opening the PDF we are getting message saying the file is corrupted. Any issues with this? pls help

Code used:
//Instantiate a Presentation object that represents a presentation file
Presentation pres = new Presentation(“EDA_UAT.pptx”);

	//Save the presentation to PDF with default options
	pres.save("demoDefault.pdf", SaveFormat.Pdf);<hr size="1" align="left" width="25%"></body></html>

Hi Prabu,

I have observed your requirements and suggest you to please try using Aspose.Slides for Java 15.7.0 on your end first. If there is still an issue then please share the source presentation and generated PDF file with us. I will be able to investigate the issue further on my end once the requested information will be shared.

Many Thanks,