简体   繁体   English

如何在没有reportlab的情况下将文本文件转换为pdf文件?

[英]how to convert text files to pdf files without reportlab in python?

I have a problem when using reportlab and py2exe. 使用reportlab和py2exe时出现问题。 It works normal on python but much error on reportlab modules when running the exe file after compiled by py2exe. 在py2exe编译后运行exe文件时,它在python上正常工作,但在reportlab模块上出现很多错误。 Can you suggest a library or code in python way to convert a text files (with tables) to pdf format without using reportlab. 您能否以python方式建议一个库或代码,以将文本文件(带有表)转换为pdf格式,而无需使用reportlab。 Thanks. 谢谢。

我过去使用pyPdf ,这对于快速而肮脏的解决方案非常有用 ,尽管在将其用于大型项目之前会有所犹豫。

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

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