Unable to save Powerpoint 2003 document in PPTX format

I am trying to upload a document which is originally created in powerpoint 2003. To save the document, i am using the following code where is is the Inputstream object.

InputStream is = "some input strem input"

PresentationEx pres = new PresentationEx(is);

ByteArrayOutputStream baos = new ByteArrayOutputStream();

pres.save(baos, SaveFormat.PPTX);

This step results in the following error:

java.lang.IllegalArgumentException: a:extLst
at com.aspose.slides.obfuscated.dx.byte(SourceFile:677)
at com.aspose.slides.obfuscated.dx.try(SourceFile:708)
at com.aspose.slides.obfuscated.azk.do(SourceFile:15)
at com.aspose.slides.obfuscated.bap.void(SourceFile:63)
at com.aspose.slides.obfuscated.azn.void(SourceFile:62)
at com.aspose.slides.obfuscated.azn.void(SourceFile:62)
at com.aspose.slides.obfuscated.azn.void(SourceFile:62)
at com.aspose.slides.obfuscated.azn.void(SourceFile:62)
at com.aspose.slides.obfuscated.azm.h(SourceFile:161)
at com.aspose.slides.pptx.PresentationEx.do(SourceFile:941)
at com.aspose.slides.pptx.PresentationEx.do(SourceFile:952)
at com.aspose.slides.pptx.PresentationEx.do(SourceFile:772)
at com.aspose.slides.pptx.PresentationEx.write(SourceFile:1209)
at com.aspose.slides.pptx.PresentationEx.save(SourceFile:1815)
at com.aspose.slides.pptx.PresentationEx.save(SourceFile:1766)

Any opinion about the issue will certainly help.

Thanks

Hi Harry,


Thanks for inquiring Aspose.Slides.

I have observed the stack trace shared by you and suggest you to please try using Aspose.Slides for Java 7.2.0 on your end. If there is still an issue then please share the sample presentation with us. I will investigate the issue further on my end to help you out.

Many Thanks,

Hi Mudassir,

Thanks for the reply.

I am currently using Aspose slides for java version 2.5.0,

Is there a workaround available for this particular version(2.5.0) as we have some urgent requirement but constraint of time for an upgradation of aspose library.

Hi Harry,


I regret to share that the product version that you are referring is fairly old. I like to share that Aspose.Slides for Java 2.5.0 does not have the support of loading a PPT using PresentationEx class. It has been introduced in Aspose.Slides for Java 3.0.0 and onward versions. If you are using PPT, then please try using Presentation class instead of PresentationEx class for loading presentation. The PresentationEx class can load the presentations of 2007 and onward formats (PPTX). Secondly, I also like to add here that the product support is available on the basis of latest available product version. If you please give a try to our latest version and still finds an issue then please share with us along with source presentation. I will be more than happy to help you out.

Many Thanks,