Hi, I am unclear on what you wish to achieve. If you want to create a table of contents look at the tutorial http://itextdocs.lowagie.com/tutorial/rtf/features/toc/index.php# If you want lists with more than one level displayed (1.2.3. instead of just 3.) then this is not possible.
Greetings, Mark On Wednesday 19 March 2008, Pradeep Pandey wrote: > I have tried creating a new style which shall display the headinds and > subheadings as follows > > 1.1.1 Heading1 > > 1.1.1.1 SubHeading1 > > 1.1.2 Heading2 > > 1.1.2.1 SubHeading2 > > 0r may be like > 1 Heading1 > > 1.1 SubHeading1 > > 2 Heading2 > > 2.1 SubHeading2 > > > I have tried using the following snippet in my class > > ZapfDingbatsNumberList z0 = new ZapfDingbatsNumberList(1, 15); > z0.add(new ListItem(new Paragraph(new Float(1.0), "Heading1", > RtfParagraphStyle.STYLE_HEADING_1))); > ZapfDingbatsNumberList z1 = new ZapfDingbatsNumberList(1, 15); > Paragraph para = new Paragraph("SubHeading1", > RtfParagraphStyle.STYLE_HEADING_2); > z1.add(new ListItem(para)); > z0.add(z1); > > z0.add(new ListItem(new Paragraph(new Float(1.0), "Heading2", > RtfParagraphStyle.STYLE_HEADING_1))); > z1 = new ZapfDingbatsNumberList(1, 15); > para = new Paragraph("SubHeading2", > RtfParagraphStyle.STYLE_HEADING_2); > z1.add(new ListItem(para)); > z0.add(z1); > > document.add(z0); > > > can someone please help me to achieve the heading style as displayed > above? > > > Pradeep Pandey > e-mail id: [EMAIL PROTECTED] > > > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > ______________________________________________________________________ -- Q: What do you call a blind pre-historic animal? A: Diyathinkhesaurus. Q: What do you call a blind pre-historic animal with a dog? A: Diyathinkhesaurus Rex. My GPG public key is available at: http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/