Slide cloning error when having slides with tables in the PPT to clone

Last post 12-08-2009, 2:04 AM by msabir. 3 replies.
Sort Posts: Previous Next
  •  12-03-2009, 4:06 AM 210915

    Slide cloning error when having slides with tables in the PPT to clone Java

    Hi,
    I've got the following and similar errors, when truying to clone slides and the PPT, that has the clone sources in it has tables with empty cells:
    Caused by: java.lang.NullPointerException
    at com.aspose.slides.Table.char(SourceFile:2106)
    at com.aspose.slides.Rectangle.char(SourceFile:203)
    at com.aspose.slides.Shape.boolean(SourceFile:2279)
    at com.aspose.slides.Presentation.if(SourceFile:3691)
    at com.aspose.slides.Slide.do(SourceFile:521)
    at com.aspose.slides.Presentation.do(SourceFile:1440)
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)

    I've got another error for a unknown reason:
    I didn't do anything with color at all in my code, just created a PPT to coy slides with tables from:

    Caused by: com.aspose.slides.PptEditException: Slide cloning error.
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1515)
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1547)
    ... 5 more
    Caused by: java.lang.IllegalArgumentException: Color parameter outside of expected range: Alpha
    at java.awt.Color.testColorValueRange(Color.java:298)
    at java.awt.Color.(Color.java:382)
    at com.aspose.slides.obfuscated.sk.do(SourceFile:16)
    at com.aspose.slides.FillFormat.getForeColor(SourceFile:349)
    at com.aspose.slides.TextFrame.new(SourceFile:747)
    at com.aspose.slides.TextFrame.case(SourceFile:798)
    at com.aspose.slides.Table.char(SourceFile:2106)
    at com.aspose.slides.Rectangle.char(SourceFile:203)
    at com.aspose.slides.Shape.boolean(SourceFile:2279)
    at com.aspose.slides.Presentation.if(SourceFile:3691)
    at com.aspose.slides.Slide.do(SourceFile:521)
    at com.aspose.slides.Presentation.do(SourceFile:1440)
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)

    It is !!!!! URGENT !!!!! to at least know the reason and get a workaround. We're working in a large scale project with high visibility.
     
  •  12-03-2009, 5:10 AM 210938 in reply to 210915

    Re: Slide cloning error when having slides with tables in the PPT to clone

    Hello,

    Could you please write version number of Aspose.Slides for Java you use. It would be great to get also source presentations and code which is used for slides cloning.

    Thank you,

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  12-07-2009, 9:30 AM 211684 in reply to 210938

    Re: Slide cloning error when having slides with tables in the PPT to clone Java

    Attachment: Present (inaccessible)
    Hi, this is a slide, that causes the NPE.

    Caused by: com.aspose.slides.PptEditException: Slide cloning error.
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1515)
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1547)
    ... 5 more
    Caused by: java.lang.NullPointerException
    at com.aspose.slides.Table.char(SourceFile:2106)
    at com.aspose.slides.Rectangle.char(SourceFile:203)
    at com.aspose.slides.Shape.boolean(SourceFile:2279)
    at com.aspose.slides.Presentation.if(SourceFile:3691)
    at com.aspose.slides.Slide.do(SourceFile:521)
    at com.aspose.slides.Presentation.do(SourceFile:1440)
    at com.aspose.slides.Presentation.cloneSlide(SourceFile:1511)
    ... 6 more
    Filed under: Slides Cloning
     
  •  12-08-2009, 2:04 AM 211816 in reply to 211684

    Re: Slide cloning error when having slides with tables in the PPT to clone

    Hi,

    Table on this slide is broken. If you try to click on the text in the table, you can notice that bottom border of the table lies somewhere in the middle of bottom cells. As a result Aspose.Slides can't read table and recalculate parameters of cells.
    Problem can be fixed by opening presentation in PowerPoint, changing text in any cell of the table and resaving the ppt file.


    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

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