Ok, here's my predicament. I'm trying to write to a PDF directly from a Database. In the database, there is a column that has HTML tags in it. When I use the HTMLWorker parser to handle the HTML and spit it back into the document, it works fine when I'm not trying to put it in an iText Table. Unfortunatly I need to put the text in a table so I can format the PDF correctly (it needs to be on the left of another set of information). Am I shooting myself in the foot, and if not, how can I get this to work as intended?
In my snippet, you'll see I tried using the ColumnText approach as well, to no avail. It's commented out but I left it there in case I need to explore that option again (it's there to remind me). Also, the variable 'st' is my stylesheet.
Here is the snippet:
// Bio Section
String strBio = SqlDR["szAttorneyBio"].ToString();
strBio = RemoveCRLF(strBio);
StringReader sr = new StringReader(strBio);
//PdfContentByte cb = writer.DirectContent;
ArrayList p = HTMLWorker.ParseToList(sr, st);
Paragraph para = new Paragraph();
//iTextSharp.text.pdf.ColumnText ct = new iTextSharp.text.pdf.ColumnText(cb);
for (int k = 0; k < p.Count; ++k)