• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2340
  • Last Modified:

iTextSharp - HTML in a PDF document

Im using iTextSharp to make PDF documents and it works fine.
The only problem is that some text contains some HTML code. How can I get the text displayed as HTML

Here is how I use iTextSharp:
Dim oppgave_1_2 As New iTextSharp.text.Paragraph("" + session("PDF_question_1") + "", FontFactory.getFont("Arial", 14, Font.normal))

Open in new window

1 Solution
David H.H.LeeCommented:
Hi Olimb,
You can try "HtmlParser" classes that available (iTextSharp.text.html) to resolve the HTML display problem.
Please refer following articles for more details:


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now