简体   繁体   English

如何使用Python 2.7将XLSX文件转换为PDF

[英]How to convert a XLSX file to PDF with Python 2.7

I have an .xlsx file I generate using xlsxwriter in a python script (version 2.7). 我有一个使用xlsxwriter在python脚本(2.7版)中生成的.xlsx文件。 I am trying to find a way to convert a worksheet in the file to a PDF format. 我正在尝试找到一种将文件中的工作表转换为PDF格式的方法。 I have not found a module that suits my needs yet.. simple, lightweight, and is able to be installed using pip. 我还没有找到适合我需求的模块。简单,轻巧,可以使用pip进行安装。

Any suggestions, let's hear them! 有什么建议,让我们听听吧! Thanks to all! 谢谢大家!

尝试使用本示例所示的openpyxl和PDFwriter的组合

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

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