Both Cells and Words have FileFormatUtil.detectFileFormat(…). Does Slides have anything similar?
I don’t want to program by exception as that is a bad programming practice. So I don’t want to do new Presentation("") and then catch the exception.
Hi John,
Thank you for your interest in Aspose.Slides.
I have observed your comments and like to request you to please visit http://www.aspose.com/docs/display/slidesjava/Getting+the+format+of+a+file
for your kind reference.
I hope this will be helpful. Please share if I may help you further in this regard.
Best Regards,
Cheers that link looks familiar but the documentation is very hard to navigate and search doesn’t work so sometimes quicker to raise a forum post than find something yourself.
Any chance a defect could be raised to bring all the Aspose.Total Java components more in sync regarding this…
I’m using most of the Aspose components and trying to write a detect logic but need to use fully qualified classes as they have the same Class name.
If someone does spend time trying could something like this be done;
CellsFileFormatInfo cellsFileFormatInfo = CellsFileFormatUtil.defectFileFormat(InputStream);
SlidesFileFormatInfo slidesFileFormatInfo = SlidesFileFormatUtil.defectFileFormat(InputStream);
WordsFileFormatInfo wordsFileFormatInfo = WordsFileFormatUtil.defectFileFormat(InputStream);
Also the values within the FileFormatInfo as some are all CAPS others CamelCase, could that brought in sync too.
Hi John,