Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] RTF -- setFirstLineIndent and setIndentationLeft
 are not working

Steve-O

2007-08-03

Replies:


I create a Paragraph object then call setFirstLineIndent and
setIndentationLeft, but these methods have no effect on the rtf output. Is
there anything else I need to do? Following is the code I use:

Paragraph p = new Paragraph(lineText, tableRowsBullet1Style); //lineText and
tableRowsBullet1Style are valid
p.setFirstLineIndent(36);
p.setIndentationLeft(36);
cell.add(new Paragraph(p));
fieldsTable.addCell(cell,i+1,2); //I'm doing this in a loop, which accounts
for the variable i
rtfDocument.add(fieldsTable);

Thanks in advance...
--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.