【问题标题】:Font-related errors when printing as pdf in internet explorer 11在 Internet Explorer 11 中打印为 pdf 时出现与字体相关的错误
【发布时间】:2015-04-06 15:45:42
【问题描述】:

我有一个使用字体很棒的图标的网站。尝试将页面打印为 pdf 时,Internet Explorer 11 会产生错误:

%%[ ProductName: Distiller ]%%
Roboto-Regular not found, using Courier.
FontAwesome not found, using Courier.
%%[Page: 1]%%
%%[ Error: invalidfont; OffendingCommand: show; ErrorInfo: CharOffsets  %%[      Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%

在我测试过的其他浏览器中,打印为 PDF 似乎不是问题。如何在 Internet Explorer 中解决此问题?

【问题讨论】:

    标签: internet-explorer pdf printing font-awesome webfonts


    【解决方案1】:

    不是一个完整的解决方案,但一种解决方法是取消选中打印对话框的“首选项”部分中的“仅依赖系统字体;不要使用文档字体”。

    【讨论】:

      【解决方案2】:

      从您发布的消息中可以看出,您正在打印的字体同时引用了 Roboto-Regular 和 FontAwesome 字体,但 Adob​​e Distiller(尝试将 PostScript 输出为 PDF)无法在其资源位置找到它们在主机上。它试图替代 Courier 的尝试没有成功。 (我不确定成功替换 Courier 是否有用。)

      验证您的机器上是否有这两种字体可用,并且 Distiller 正在查找放置它们的资源文件夹。根据需要进行更新,方法是将字体移动到这些位置或添加新字体。例如在 Adob​​e Acrobat Distiller X 中,按 Ctrl+L 将弹出 Distiller 将查找字体的位置列表。

      【讨论】:

        猜你喜欢
        • 2012-10-30
        • 2023-03-02
        • 2022-06-22
        • 1970-01-01
        • 1970-01-01
        • 2014-09-10
        • 2015-06-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多