html to PdfPCell

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

html to PdfPCell

memmo77
Hi, I want to add html code to PdfPCell.
use:

PdfPCell html = new PdfPCell();
StreamReader file = new StreamReader (@ "c: \ file.html");
foreach (IElement element in iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList (file, null))
{
html.AddElement (element);
}

The problem is that all the tables are formatted to 100% and you lose colors and more.
You know how to solve?
thanks