Sebastian Ariel Cortes wrote:
> Hi, i'm using HTMLWorker to convert some HTML to PDF.
> 
> The problem is that HTMLWorker is not supporting RowSpan. I readed in
> some post that HTMLWorker was created before rowspan support.
> 
> I modified the class com.lowagie.text.html.simpleparser.IncCell adding
> next code after the colspan check in the constructor and now
> HTMLWorker is working great with rowspan:
> 
>         String rowspanvalue = props.getProperty("rowspan");
>         if (rowspanvalue != null)
>             cell.setRowspan((Integer.parseInt(rowspanvalue)));
> 
> Have you tried this? Do you see some future problem doing this?
> 
> I'm using 2.1.7 version of iText.

You've fixed the problem correctly.
The only problem I see, is the fact that there are still some
rowspan bugs in iText 2.1.7. These bugs are fixed in iText 5.
These bugs are not related to your HTMLWorker patch, they also
occur if you create the PdfPTable from code (instead of from HTML).

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to