Symbol font on ABCpdf

前端 未结 3 388
梦毁少年i
梦毁少年i 2021-01-13 10:33

I\'m using the ABCpdf.net component to convert HTML to PDF. Some of the HTML uses the Symbol font to display certain characters. Unfortunately, we are consuming the HTML fro

3条回答
  •  情话喂你
    2021-01-13 11:16

    The WebSuperGoo support team responded with the fix: setting font-related HtmlOptions. I set these options, and it fixed the issue. Yay!

    If you want to embed the fonts used in a web page/HTML you need to use:
        Doc.HtmlOptions.FontEmbed = True
    You may also need to set
        Doc.HtmlOptions.FontSubstitute = False
    and possibly:
        Doc.HtmlOptions.FontProtection = False
    before you use the Doc.AddImageUrl or Doc.AddImageHtml methods.
    

    Edit: As I mention in the comment below, the option that did the trick was FontProtection = false.

提交回复
热议问题