Error using LineSpacing and MarginTop in Text-Paragraph

Hi all,

following extract of an XML throws a nasty error:

<Text IsTrueTypeFontBold=“true” FontSize=“10” IsUnderline=“true” MarginTop=“0,6cm”><Segment>Risikohinweis:</Segment></Text>
<Text MarginTop=“5” LineSpacing=“2”>
<Segment>Bei dieser angebotenen Teilschuldverschreibung handelt es sich nicht um eine mündel- und einlagensichere</Segment>
<Segment>Kapitalanlage. Es ist nicht ausgeschlossen, dass es bei dieser Kapitalanlage zu einem Verlust des eingesetzten </Segment>
<Segment>Kapitals kommt und die versprochenen Zinszahlungen nicht oder nicht vollst?ndig durch den Emittent geleistet </Segment>
<Segment>werden. Es handelt sich um eine risikobehaftete Kapitalanlage, mit den in dem Wertpapierverkaufsprospekt </Segment>
<Segment>(Stand: Oktober 2004) hinterlegten Chancen und Risiken.</Segment>
</Text>

Results in:

[ArgumentException: Invalid index in Segments indexer: 0]
Aspose.Pdf.Segments.get_Item(Int32 index)
Aspose.Pdf.Xml.af.a(Table A_0, Row A_1, Row A_2)
Aspose.Pdf.Xml.j.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, a A_6, w A_7)
Aspose.Pdf.Xml.b.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, a A_6, w A_7, Boolean A_8)
Aspose.Pdf.Xml.i.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, a A_5)
Aspose.Pdf.Xml.af.a(Pdf A_0, Section A_1, Table A_2, Row A_3, a A_4)
Aspose.Pdf.Xml.ak.a(Pdf A_0, Section A_1, Table A_2, a A_3, Boolean A_4)
Aspose.Pdf.Xml.u.a(Pdf A_0, Section A_1, a A_2)
Aspose.Pdf.Xml.ar.a(Pdf A_0)
Aspose.Pdf.Xml.aa.a(a A_0, Pdf A_1)
Aspose.Pdf.Pdf.Save(String pdfFile)

If I omit either LineSpacing or MarginTop it runs like a charm Smile

Cheers
Timo

Dear Timo,

Thank you for considering Aspose.

I have tested you XML and found no error. Are you sure you are using the latest hot fix (1.9.2) ? If so, are you sure the xml is the right one that cause this error?

Well I cannot reproduce it today, while yesterday night it was a show stopper. Only thing I did in the meantime was to download the bugfix of the 1.9.2 - was using 1.9.2 yesterday as well.

Well, thanks anyway.
Timo