Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] help: problem with writing series of tab
 characters to table cell

Kevin Nguyen

2006-08-07

Replies:

Hi all,

How tab characters are rendered in table cell (PdfPTable) ?

Itext doesn't seem to render content with tab characters correctly.

For example,  If you go to http://itextdocs.lowagie.com/examples/com/lowagie/examples/objects/tables/MyFirstTable.java
and change
    table.addCell("1.1")
  to
    table.addCell("This is a test \t\t\t\t\t\t\t\t\t\t bug \t\t\t\t\t bug2 \t\t\t\t");
 


"bug2" will run over the the next cell instead of wrapping around.

This seems like a bug in itext.

-Kevin


-------------------------------------------------------------------------
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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.