Exception while opening pptx files

Last post 12-10-2010, 8:02 AM by Mudassir. 1 replies.
Sort Posts: Previous Next
  •  12-10-2010, 3:24 AM 273247

    Exception while opening pptx files Java

    Attachment: Present (inaccessible)
    Hi Aspose-team,

    I am evaluating the Aspose.Slides software for converting ppt-slides into images. Therefore I have downloaded the demo version of Aspose.Slides. Converting ppt files to images is no problem but when it comes to converting pptx files I will get an exception on opening the file. So I don't know if Aspose.Slides is not able to deal with pptx or if this is a bug or a misconfiguration on my side or maybe its just not possible with the demo version. Below you can see a stack trace of the error. Attached you can find my source file as well as a pptx file which won't open.

    java.lang.NegativeArraySizeException
        at com.aspose.slides.obfuscated.fi.do(SourceFile:34)
        at com.aspose.slides.obfuscated.vf.try(SourceFile:65)
        at com.aspose.slides.obfuscated.vf.new(SourceFile:60)
        at com.aspose.slides.obfuscated.vf.<init>(SourceFile:47)
        at com.aspose.slides.obfuscated.ad.do(SourceFile:34)
        at com.aspose.slides.obfuscated.ad.<init>(SourceFile:30)
        at com.aspose.slides.Presentation.do(SourceFile:178)
        at com.aspose.slides.Presentation.<init>(SourceFile:550)
        at de.meetyoo.pptconvert.Ppt2Img.convert(Ppt2Img.java:32)
        at de.meetyoo.pptconvert.Ppt2Img.main(Ppt2Img.java:71)

    Regards,
    Nicos

     
  •  12-10-2010, 8:02 AM 273331 in reply to 273247

    Re: Exception while opening pptx files

    Dear Nicos,

    Thanks for your interest in Aspose.Slides.

    I have observed the code snippet shared by you along with the shared PPTX file. Actually, you are using Presentation class to access PPTX. You may please use PresentationEx to access the PPTX file. Please follow this documentation link to generate PPTX thumbnail.

    Thanks and Regards,


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML