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

Free Support Forum - aspose.cloud

Aspose.Slides for Java: Converting PPTX to PDF Is Not Working

Dear,
When I am converting pptx file to pdf, always I get corrupted pdf file.
I am using aspose-slides-19.3-jdk16.jar and this code

        Presentation presentation = new Presentation("C:/Users/muk/Desktop/pptFile.pptx");
	
	try {

	                presentation.save("C:/Users/muk/Desktop/PowerPoint-to-PDF.pdf",SaveFormat.Pdf);
	      
	    } finally {
	        if (presentation != null) presentation.dispose();
	    }

You can download pptx and pdf files from here https://drive.google.com/file/d/1v_lwUYsTDBZM3wdF7K0dF7F2_6BtafKe/view?usp=sharing

This topic has been moved to the related forum: https://forum.aspose.com/t/aspose-slides-for-java-converting-pptx-to-pdf-is-not-working/251201