Using @font-face with ABCPDF? Or other way of getting fonts into PDF?

前端 未结 2 1325
情书的邮戳
情书的邮戳 2021-01-05 19:49

We have a large application successfully using ABCPDF.NET with HTML Styled text. We\'re accustomed to adding text using fonts not installed in Windows, but stored in files e

2条回答
  •  醉梦人生
    2021-01-05 20:40

    NOTE:

    As of ABCpdf 11, this works. Font files must either be at an accessible HTTP/HTTPS url (works with either AddImageHTML() or AddImageURL() or, if you wish to use a file:/// URL, you must write the HTML to a file and use AddImageURL(). Font files can be OpenType, TrueType, Type 1 or WOFF webfonts.

    Sample code given in question works now, unchanged.


    Previous answer:

    WebSuperGoo responded:

    ABCpdf does not currently support fonts added using @font-face.

    So, as of the 9.0 release of ABCpdf, that's that.

提交回复
热议问题