If you need rowspan in PdfPTable use nested tables. It will work beter than rowspan as you'll be able to control precisely the layout.
Paulo ----- Original Message ----- From: "Michael Gantman" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, August 14, 2006 9:03 AM Subject: [iText-questions] why rowspan is disabled for PdfPCell Hello. I am working on creating pdf documents with iText. I need to support documents with tables that can contain cells that span over several rows. I noticed that PdfPCell doesn't have this functionality (it does have column span functionality). But class Cell supports such feature. Thus I am forced to use classes Table and Cell as opposed to PdfPTable and PdfPCell. Using those classes I am able to produce the documents that I need, but I am somewhat limited in the functionality. The same problem also prevents me from using HTMLWorker that converts HTML into PDF. The problem there is that HTNLWorker produces PdfPTable as a result of conversion and if my table in HTML has cells that span multiple rows I and up with messed up PDF doc. I understand that the feature of rowspan is not present in PdfPCell by design. (I saw in source code for Cell in method createPdfPCell()that it throws exception if cell has rowspan greater then 1). Why is it so? Is it easy to fix? Best regards, Michael Gantman -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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
