PDF conversion doesnot accepts Unicode characters.

Posted on 2009-04-25
Last Modified: 2013-12-17
I m using ITextSharp to conver html to pdf.
But its not suporting Unicode characters.
What can be the problem?

Question by:bedanand
    1 Comment
    LVL 39

    Accepted Solution

    Check out this link for how to use unicode with iTextSharp.  Main points to note (and that may not be clear from that post) are: the BaseFont must be initialized with the second parameter set to BaseFont.IDENTITY_H and the font that you use must support the Unicode characters (Arial Unicode MS is one of them).

    To find out whether your current data is correctly read (i.e., the string containing your HTML) you can check it by hovering over while inside a breakpoint. If it is not read on correctly (the HTML I mean) you should check whether you read the file in as Unicode.

    -- Abel --

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
    The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
    In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
    Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

    734 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

    22 Experts available now in Live!

    Get 1:1 Help Now