iTextSharp - HTML in a PDF document

Posted on 2008-11-06
Last Modified: 2012-05-05
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

Question by:Olimb
    1 Comment
    LVL 29

    Accepted Solution

    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:


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now