Hi Everyone,

Is there a way to specify something to specify spacing
before or spacing after a ListItem in RTF ? I can use
ListItem.setExtraParagraphSpace() and this works for
PDF document, but it doesn't seem to work for RTF. If
I need to implement this myself, would anyone be able
to give me a hint as to which class to subclass
please? (not sure if it's RtfListItem)

Also, if I need to implement a custom bullet in a RTF
list, do I start with extending RtfListItem? Basically
I'd like to implement List.setListSymbol() for RTF.
I'd really appreciate it if someone were to provide
any hint.

Just if anyone is interested, the snippet of the code
I am doing in RTF is as following:

<code>
    List list = new List(false, 12.0f);
    Chunk bulletChunk = new Chunk((char) 110,
bulletFont);
    bulletChunk.setTextRise(1.5f);
    list.setListSymbol(bulletChunk);

    for (Object objEntry : entryListData) {
        ResumeEntryData entryData = (ResumeEntryData)
objEntry;
            ListItem li = new ListItem(new
Chunk(entryData.getValue(), baseFont));
            li.setExtraParagraphSpace(3.0f);
            list.add(li);
        }
        
    Paragraph listPara = new Paragraph();
    listPara.setSpacingBefore(2.0f);
    listPara.add(list);

    rtfDocument.add(listPara);
        
</code>

Thanks in advance for your time.

Regards,

Felix


      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to