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>