Hi Erez, There was a bug in StyleTextPropAtom. See the fix for Bug 41015. http://issues.apache.org/bugzilla/show_bug.cgi?id=41015.
It should also fix the problem with indentation, i.e. getIdnetLevel() should return the correct level. BTW, what version of PowerPoint you are using? Are there any special regional settings in PowerPoint or in OS? This knowledge may help to understand what the missing property mean. Yegor EE> Can you tell me if this Exception has something to do with ident levels? EE> Because I see that I'm getting ident level = 0 for the richtextrun that EE> throws this exception, when I expect to get ident level = 1. EE> Thanks EE> -----Original Message----- EE> From: Nick Burch [mailto:[EMAIL PROTECTED] EE> Sent: Wednesday, November 22, 2006 3:08 PM EE> To: POI Users List EE> Subject: Re: PPT/POI - RichTextRun - EE> java.lang.StringIndexOutOfBoundsException - method getText() EE> On Wed, 22 Nov 2006, Erez Eisenstein wrote: >> When I invoke the method >> org.apache.poi.hslf.usermodel.RichTextRun.getText() I get an exception EE> - >> StringIndexOutOfBoundsException. >> >> I can see that the length member of this instance has a very big value >> (1572863), while the getText() method of the TextRun returns a shorter >> String (55). EE> Looks like you have a StyleTextProp atom, which claims you have a Rich EE> Text Run, which is longer than the underlying text atom has text for EE> The snag is that the code for building RichTextRuns from a EE> StyleTextPropAtom and a text atom is pretty complicated already, and EE> assumes that the text lengths will be correct. Updating it to handle the EE> case when the StyleTextPropAtom lies about the length isn't going to be EE> fun :( EE> If you could upload the problem file to bugzilla, then I can maybe take EE> a EE> look the next time I want a frustraiting challenge.... EE> Nick EE> --------------------------------------------------------------------- EE> To unsubscribe, e-mail: [EMAIL PROTECTED] EE> Mailing List: http://jakarta.apache.org/site/mail2.html#poi EE> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ EE> --------------------------------------------------------------------- EE> To unsubscribe, e-mail: [EMAIL PROTECTED] EE> Mailing List: http://jakarta.apache.org/site/mail2.html#poi EE> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/