【问题标题】:Prevent LocalReport Embedding Font into PDF [duplicate]防止 LocalReport 将字体嵌入 PDF [重复]
【发布时间】:2014-08-13 08:47:25
【问题描述】:

在使用 Calibri 渲染 PDF 时,我们注意到与使用 Arial 的相同报告相比,文件大小大大增加。

查看 PDF 的属性,结果发现这是由于 LocalReport.Render() 在 PDF 本身中嵌入了 Calibri 的子集,导致文件大小增加:

由于我们很高兴 PDF 的所有收件人都已经拥有 Calibri,我们需要一种方法来防止字体被嵌入。

我们将 Microsoft.Reporting.WebForms.LocalReport.Render 与 .rdlc 一起使用

【问题讨论】:

    标签: pdf reporting-services fonts rdlc localreport


    【解决方案1】:

    事实证明,我们只需要在 DeviceInfo.xml 中添加一个键:

    <DeviceInfo>
    <EmbedFonts>None</EmbedFonts>
    </DeviceInfo>
    

    我找到了the answer here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-20
      • 2014-12-17
      • 1970-01-01
      • 2011-10-25
      • 1970-01-01
      • 2021-11-06
      • 2010-11-08
      • 2017-08-13
      相关资源
      最近更新 更多