Display Unicode characters in converting Html to Pdf

前端 未结 5 1496
孤城傲影
孤城傲影 2020-11-28 10:33

I am using itextsharp dll to convert HTML to PDF.

The HTML has some Unicode characters like α, β... when I try to convert HTML to PDF, Unicode characters are not sho

5条回答
  •  自闭症患者
    2020-11-28 11:30

    Here is the few steps to display unicode characters in converting Html to Pdf

    1. Create a HTMLWorker
    2. Register a unicode font and assign it
    3. Create a style sheet and set the encoding to Identity-H
    4. Assign the style sheet to the html parser

    Check below link for more understanding....

    • Display Unicode characters in converting Html to Pdf

    Hindi, Turkish, and special characters are also display during converting from HTML to PDF using this method. Check below demo image.

提交回复
热议问题