在RDLC嵌入排除默认字体渲染成PDF [英] Exclude default font embed in RDLC render to PDF

查看:531
本文介绍了在RDLC嵌入排除默认字体渲染成PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试呈现到PDF文件RDLC报告和所生成的文件的大小是大于正常。经过一番研究,我发现已经产生嵌入字体的PDF:
.....
9 0 OBJ
<< /过滤/ FlateDe code /长度52986 /长度1 194264 >>

.....

I try to render RDLC report to PDF file and the size of the file generated is larger than normal. After some research i found the PDF generated have embedded font: ..... 9 0 obj << /Filter /FlateDecode /Length 52986 /Length1 194264 >> stream .....

当我生成PDF文件并保存到磁盘使用相同的方法和相同的code一个PDF有大小:6.82 KB和其他109 KB

When i generate PDFs and save to disk with the same method and the same code one PDF have the size: 6.82 KB and other 109 KB.

该PDF文件是相同的,如果我在Adobe Acrobat打开。

The PDFs is identically if i open with Adobe Acrobat.

解决方案1:

我生成Microsoft.ReportViewer.WebForms版本11 MVC 4应用程序中的PDF文件。
我试图在同一个MVC应用程序中使用Microsoft.ReportViewer.WinForms库,看看是否尺寸减小,但没有结果。

I generate the PDF in MVC 4 application with "Microsoft.ReportViewer.WebForms" version 11. I try to use "Microsoft.ReportViewer.WinForms" library in the same MVC application to see if the size decreases but no result.

失败

Solutin 2:

我RDLC文件,如果存在一些关于字体,但不存在搜索的记事本,只是字体大小,如果是大胆的,但不是有些名字。

I search in RDLC file with notepad if exist something about fonts but not exist, only font size, if is bold but not some name.

失败

小PDF字体属性:

The small PDF font property:

大型PDF字体属性:

The large PDF font property:

我的问题是:从RDLC渲染PDF如何嵌入不是默认的字体

My question is: How to not embed default font in PDF rendered from RDLC?

推荐答案

原来我们只是添加一键DeviceInfo.xml需要的:

It turns out we merely needed to add a key to the DeviceInfo.xml:

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

我发现<一个href=\"http://blogs.msdn.com/b/mariae/archive/2010/04/12/how-to-disable-this-font-embedding-in-reporting-services-2005-service-pack-3.aspx\"相对=nofollow>此处答案。

这篇关于在RDLC嵌入排除默认字体渲染成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆