简体   繁体   English

为什么Evo PDF会生成大尺寸的PDF(HTML到PDF转换器)?

[英]why Evo PDF generates large size PDFs (HTML to PDF converter)?

I am using EVO pdf dll to convert aspx page having 3 chart control (with png format) in it to PDF, but it generates PDF having size of 400 kb. 我正在使用EVO pdf dll将其中具有3个图表控件(具有png格式)的aspx页面转换为PDF,但是它生成的PDF大小为400 kb。 IF RDLC is used to generate similar page then it generates page having size of 50 kb.But I dont have option of using RDLC. 如果使用RDLC生成类似的页面,则生成的页面大小为50 kb。但是我没有使用RDLC的选项。

Note that I tried JPEG compression setting also png chart images are of low dimensions (small size graphs) also the quality of images is not that great. 请注意,我尝试了JPEG压缩设置,而且png图表图像的尺寸较小(小尺寸图形),图像质量也不是很好。 I coordinated with the evo pdf technical team but did not received proper response. 我与evo pdf技术团队进行了协调,但未收到适当的回复。 Your kind help highly appreciated. 谢谢您的帮助。

You can also try to disable the font embedding with HtmlToPdfConverter.PdfDocumentOptions.EmbedFonts = false. 您也可以尝试使用HtmlToPdfConverter.PdfDocumentOptions.EmbedFonts = false禁用字体嵌入。 This option can make the PDF document to not display the text properly if the font used in PDF is not installed on the computer where you display the PDF. 如果在显示PDF的计算机上未安装PDF中使用的字体,则此选项会使PDF文档无法正确显示文本。

Another option to reduce the PDF document size is to set tmlToPdfConverter.PdfDocumentOptions.ImagesScalingEnabled = true. 减小PDF文档大小的另一种方法是将tmlToPdfConverter.PdfDocumentOptions.ImagesScalingEnabled = true设置。 This can reduce the size and also the quality of large images displayed in HTML at a size much smaller than the actual physical size of the images. 这样可以减小以HTML显示的大图像的尺寸,并减小其质量,该尺寸要比图像的实际物理尺寸小得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM