Hello,
I am using com.lowagie.text.rtf.list.RtfList to generate lists that I need to use for my purposes.
The generated rtf code I use to put into my rtf "templates"
code sample:
com.lowagie.text.List content = new com.lowagie.text.List(false, 20);
Iterator contentIterator = contentList.iterator(); // This Iterator holds text i want to have in the list
while(contentIterator.hasNext()){
String text = (String) contentIterator.next();
content.add(new ListItem(text));
}
RtfDocument doc = new RtfDocument(); // I don't use this document it's only used to generate the list code that is than glued into another document.
RtfList listEl = new RtfList(doc,content);
String listElementStr = new String(listEl.write());
The problem is my result is always a numbered list and if there was a numbered list before in the document it continues the enumeration.
Thank you for your sugestions.
Regards
Marcin
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
