On Fri, 2007-02-09 at 11:12 +0100, Bruno Lowagie (iText) wrote:
> Stuart Jansen wrote:
> > I'd like to have a List without any symbol where any ListItem that wraps
> > onto a second line is indented more than the first line.
> 
> You need a 'list without any list symbol'
> and every 'list item' has to have a different
> indentation for the first line compared to
> the following lines.
> 
> When I read this, I don't think of lists
> and list items. I think of a sequence of
> paragraphs with a negative indentation for
> the first line:
> 
> Something like this:
> Paragraph p = new Paragraph(longString);
> p.setFirstLineIndent(-10);
> ct.addElement(p);

Thanks.

For the benefit of anyone reading this in the future, my original
question included sub-lists. This was the source of my confusion. I was
worried about the sub-list being properly indented, but
setIndentationLeft() solves that.

Paragraph p = new Paragraph(longString);
p.setFirstLineIndent(-10);
ct.addElement(p);
List sublist = new List(List.UNORDERED, 10);
sublist.setIndentationLeft(10);
sublist.add(longString);
ct.addElement(sublist);

-- 
Stuart Jansen <[EMAIL PROTECTED]>
Guru Labs, L.C.

Attachment: signature.asc
Description: This is a digitally signed message part

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