Hello
I am using aspose.slides7.2.0 , i need to check if a file with a ppt extension is a real powerpoint file.
I
mean if the extension of a pdf file was changed to .ppt, i need a
method to check that this file is not a real powerpoint document. Is there a
method to do that?
Hi Karine,
Thanks for inquiring Aspose.Slides.
I have observed the requirements shared by you and like to share that Aspose.Slides does offer you the solution for verifying the valid PPT presentation. Please use the following sample code on your end with latest available Aspose.Slides for Java 8.2.0.
try{
Presentation ppts=new Presentation(path+“arialtest.ppt”);
}
catch( com.aspose.slides.PptUnsupportedFormatException es)
{
es.printStackTrace();
}
Many Thanks,