使用@字体面带ABCPDF?或者让字体转换成PDF的其他方式?

问题描述:

我们有一个大的应用程序成功使用ABCPDF.NET与HTML样式的文本。我们习惯于将使用不安装在Windows字体的文本,但存储在文件系统中其他地方的文件 - 我们这样做,所以每个用户可以上传他们自己的字体,并与输出使用它们。我们使用AddFont调用嵌入到文档的字体,然后引用的字体在与AddText调用HTML样式的文本标签。

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 elsewhere in the filesystem -- we do this so each user can upload their own fonts and use them with the output. We use the AddFont call to embed the font in the Doc, then reference the font in a tag for HTML Styled text with the AddText call.

我们已经开始看看使用AddImageUrl / AddImageHTML获得更多的HTML力量。因此,字体是一个棘手的问题。看来,无论是MSHTML和壁虎引擎将只能看到相同的字体列表窗口将。

We're starting to look at using AddImageUrl / AddImageHTML to get more HTML power. Fonts are therefore a sticking point. It seems that both the MSHTML and Gecko engines will only see the same font list that Windows will.

我想这code,看看@字体面将与壁虎工作:

I tried this code to see if @font-face will work with Gecko:

Sub Main
    dim pdf as new Doc
    with pdf.HtmlOptions
        .Engine = EngineType.Gecko
        .FontEmbed = true
        .FontSubstitute = false
        .FontProtection = false
    end with
    pdf.AddImageUrl("http://www.w3.org/2010/09/web-on-tv/slides/1009-tv-web-chaals/demos/webfonts.htm")
    pdf.Save("c:\temp\a.pdf")
End Sub

但它不会。还有什么我能做什么?

But it won't. Is there anything else I can do?

这是ABCpdf.NET 8.1.0.7。将升级到9或8无助于以后的版本?

This is with ABCpdf.NET 8.1.0.7. Would upgrading to 9 or a later release of 8 help at all?

WebSuperGoo回应:

WebSuperGoo responded:

ABCpdf目前不支持字体使用@字体面增加。

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

因此​​,随着9.0版本ABCpdf的,就是这样。

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