  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | PdfPTable column widths | PdfPTable column widths 2007-12-04 - By Bruno Lowagie
Back Nik Kolev wrote: > One approach that I tried but did not work (keep in mind that I?ve > only been using iText for 2 days before trying to kill me) is keeping > track of the width of the data of each cell in a given column, using > ColumnText.getWidth(Phrase p) ? p being used when constructing the > PdfPCell-s; and at the end doing a table.setWidths with the max width > of each column. You're in the right direction. PDF isn't HTML, so you can't expect the table to adjust itself to the content of the cells. In other words: you have to examine the content first with something like getWidth. Please tell us what went wrong. br, Bruno
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ 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/
|
|
 |