简体   繁体   English

Unoconv-保持缩放比例,将xlsx转换为pdf

[英]Unoconv - Maintain scaling converting xlsx to pdf

I'm using unoconv to convert an Excel file to PDF. 我正在使用unoconv将Excel文件转换为PDF。 The converted PDF retains the correct scaling when converting from an .xls file, however the PDF scaling reverts to 100% when converting from an .xlsx file. 从.xlsx文件转换时,转换后的PDF保留正确的缩放比例,但是从.xlsx文件转换时,PDF缩放比例恢复为100%。 In other words, unoconv converts the same file, albeit with different extensions and Excel format, differently. 换句话说,unoconv会转换同一文件,尽管具有不同的扩展名和Excel格式,但是转换方式也有所不同。

Operating system is Ubuntu. 操作系统是Ubuntu。 I'm running unoconv from the command line. 我从命令行运行unoconv。 I've scoured the web for a solution and have found none. 我在网上搜寻解决方案,但没有找到。 I believe it's a bug in unoconv, ie unoconv does not seem to support maintaining the scaling when converting from .xlsx as it does when converting from .xls 我相信这是unoconv中的错误,即unoconv似乎不支持从.xlsx转换时保持缩放,就像从.xls转换时一样。

Has anyone else encountered this and, if so, is there a workaround? 是否还有其他人遇到过这种情况?如果有,是否有解决方法?

You could convert .xlsx files directly from Excel 您可以直接从Excel转换.xlsx文件

File>Save As > Browse. 文件>另存为>浏览。 change file extension to pdf from drop down menu. 从下拉菜单中将文件扩展名更改为pdf。

or File>Save as Adobe PDF and follow the dialog 或“文件”>“另存为Adobe PDF”并遵循对话框

this is at Office 2013 这是在Office 2013

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

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