I am using the HTMLParser of iText and i have the same problem. I would like to know that the problem is the parser or (that it looks) the problem is the implementation of the WidthPercentage method.
Are there any manual o tutorial about the tags that support the HTMLParser??. I tried width and colspan in HTML to convert to pdf but it doesn�t work. thanks -----Mensaje original----- De: Jonathan [mailto:[EMAIL PROTECTED] Enviado el: jueves, 27 de mayo de 2004 17:23 Para: [EMAIL PROTECTED] Asunto: [iText-questions] Embedded tables. Hi, I need some help to create embedded tables. Here is the HTML code for what I want: <html> <head> <title>Title of page</title> </head> <body> <table border="1"> <tr> <td> <table border="1" width= "100%"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> </table> </td> </tr> <tr> <td> <table border="1" width = "100%"> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> </td> </tr> <tr> <td> <table border="1" width = "100%"> <tr> <td>row 3, cell 1</td> <td>row 3, cell 2</td> <td>row 3, cell 3</td> <td>row 3, cell 4</td> </tr> </table> </td> </tr> </table> </body> </html> Here is the code I tried using iText library: Table Table1 = new Table(1); Table Table2 = new Table(2,1); Table2.WidthPercentage = 100; Table Table3 = new Table(2,1); Table3.WidthPercentage = 100; Table Table4 = new Table(4,1); Table4.WidthPercentage = 100; Table2.addCell("T2"); Table2.addCell("T2"); Table1.insertTable(Table2, new Point(0,0)); Table3.addCell("T3"); Table3.addCell("T3"); Table1.insertTable(Table3, new Point(1,0)); Table4.addCell("T4"); Table4.addCell("T4"); Table4.addCell("T4"); Table4.addCell("T4"); Table1.insertTable(Table4, new Point(2,0)); The table width percentage does not seem to change anything...? It would be very appreciate if someone could help me here. Jonathan ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
