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. 

______________________________________________________________________
-------------------------------------------------------------------------
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/

Reply via email to