Alin,

Change the line with the addSection() to:

Section section = chap.addSection(new Paragraph("Sub testing"));

the use section.addSection(...).

Dave

On Thu, 27 Jul 2006 13:05:25 +0200, Alin Popa wrote
> Hi guys,
> 
> I have one problem regarding creation of Chapters and Subchapters.
> Using iText there is possible to do this kind of structure ?
> I mean, for example:
> 
> Chapter chap=new Chapter("testing",1);
> chap.addSection(new Paragraph("Sub testing"));
> 
> document.add(chap);
> 
> After that I'll have something like that:
> 
> 1. Testing
> 1.1 Sub testing
> 
> but, if I want to add another subchapter to "Sub testing", how can this be
> done ?
> 
> Thanks in advance.
> 
> -- 
> Best Regards,
> 
> Alin


--
Open WebMail Project (http://openwebmail.org)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to