简体   繁体   English

Excel转pdf,图像质量不好?

[英]Excel to pdf, bad image quality?

OK, I have Excel(from Excel 2010 Workbook Template) sheet with picture on it and when I export this sheet to pdf i get very bad image quality. 好的,我上面有带有图片的Excel(来自Excel 2010 Workbook Template)工作表,当我将此工作表导出为pdf时,图像质量很差。 Text is fine, but image not at all. 文字很好,但图像根本不行。

I use this code to export excel to pdf: 我使用此代码将excel导出为pdf:

xlSS.ExportAsFixedFormat(
    XlFixedFormatType.xlTypePDF, 
    path, 
    XlFixedFormatQuality.xlQualityStandard);

Is there better way to save(export) .xlsx/.xls to .pdf so I could get nice image quality? 有没有更好的方法将.xlsx / .xls保存(导出)为.pdf,这样我可以获得很好的图像质量?

Here is comparation, the first one is when extracted to pdf: 这是比较,第一个是当提取为pdf时:

在此处输入图片说明

在此处输入图片说明

Solved. 解决了。 Solution is that you have to resize picture after its insert in sheet, otherwise it looses quality. 解决的方法是您必须在将图片插入图纸后调整图片的大小,否则会降低质量。

I've done it like that and maintained image quality even when exporting sheet into pdf file. 我已经做到了这一点,即使将工作表导出为pdf文件时也可以保持图像质量。

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

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