Hi,
I am getting the following stacktraces when trying to open a PPTX file that is known to be valid:
com.aspose.slides.PptException: Unknown file format.
at com.aspose.slides.obfuscated.kw.(SourceFile:185)
at com.aspose.slides.pptx.PresentationEx.(SourceFile:1023)
at kiwi.conversion.ppt.ConvertPPT.convert_PPTX(ConvertPPT.java:261)
… 3 more
Caused by: com.aspose.slides.PptReadException: Error reading “/ppt/drawings/vmlDrawing1.vml” xml part
at com.aspose.slides.obfuscated.kw.do(SourceFile:579)
at com.aspose.slides.obfuscated.v.do(SourceFile:387)
at com.aspose.slides.obfuscated.rc.if(SourceFile:33)
at com.aspose.slides.obfuscated.rc.(SourceFile:17)
at com.aspose.slides.obfuscated.kw.if(SourceFile:268)
at com.aspose.slides.obfuscated.kw.(SourceFile:183)
… 4 more
Caused by: com.aspose.slides.obfuscated.ro: UNKNOWN(Xml_UserException)
at com.aspose.slides.obfuscated.hs.s(SourceFile:1232)
at com.aspose.slides.obfuscated.hs.else(SourceFile:1935)
at com.aspose.slides.obfuscated.py.if(SourceFile:256)
at com.aspose.slides.obfuscated.py.for(SourceFile:222)
at com.aspose.slides.obfuscated.py.new(SourceFile:429)
at com.aspose.slides.obfuscated.py.if(SourceFile:230)
at com.aspose.slides.obfuscated.py.for(SourceFile:222)
at com.aspose.slides.obfuscated.py.new(SourceFile:429)
at com.aspose.slides.obfuscated.py.if(SourceFile:230)
at com.aspose.slides.obfuscated.py.do(SourceFile:306)
at com.aspose.slides.obfuscated.py.do(SourceFile:174)
at com.aspose.slides.obfuscated.zr.do(SourceFile:978)
at com.aspose.slides.obfuscated.kw.do(SourceFile:561)
… 9 more
The snippet of code generating this exception is:
ByteArrayInputStream presByteInputStream = new ByteArrayInputStream(raw_bytes_of_file);
PresentationEx pres = new PresentationEx(presByteInputStream);
The pptx file causing the exception is attached.
And, the versions of jar files I am using are:
aspose-metafiles-1.6.1.jar
aspose-slides-2.3.0.jar
Hello James,
I have worked with the presentation file shared by you and have been able to reproduce the problem of Unknown file format exception. It seems to be an inconsistency in Aspose.Slides and needs further verification. For that an issue with ID 19008 has been created in our issue tracking system so that our development team may work on this. This thread has also been linked with the issue, so that you may be automatically notified, once the issue is resolved.
We are sorry for your inconvenience,
The issues you have found earlier (filed as SLIDESJAVA-19008) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Team,
We are also facing same issue like “Unknow file format exception”. We are trying to copy content of ppt to text. Could please help us which version of aspose.slides we should use.
Regard,
Ashish
@forasposeissues,
Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please create a new forum thread and share the following files and information there:
- input presentation file
- code example that reproduces the error
- stacktrace of the exception
- OS version on which the code was executed
- JDK version in your app
- Aspose.Slides version you used