赞
踩
- from docx2pdf import convert
-
-
- def word_pdf(input_file, output_file):
- convert(input_file, output_file)
-
-
- if __name__ == '__main__':
- word_pdf('1.docx', '1.pdf')
记得安装库: pip install docx2pdf
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。