Hi,

I try to create a table of contents, inserting a field at the beginnig of the 
document, then using styles created like :

new RtfParagraphStyle("heading 1", this.styleToc[0].tocFont, 
parseInt(this.styleToc[0].tocPolice), 
this.getFontStyle(this.styleToc[0].tocFormat), 
this.getColor(this.styleToc[0].tocColor));

but when i create this one : 

new RtfParagraphStyle("heading 4", this.styleToc[3].tocFont, 
parseInt(this.styleToc[3].tocPolice), 
this.getFontStyle(this.styleToc[3].tocFormat), 
this.getColor(this.styleToc[3].tocColor));

use it in a Paragraph as Font, and add the Paragraph to my document, It returns 
a null pointer exception. All the stuff works until "heading 3", but "heading 
4" and sup don't work. I cannot understand this error, to my knowledge, the 
limitation of a standard Table of Content is 9 not 3.

Best regards,

Loïc LE DOYEN
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to