中心思想,生成txt文件,再用liberoffice转为PDF
import os
com1="echo "+info_text+":信息 >swap.txt"
com2="libreoffice --convert-to pdf:writer_pdf_Export swap.txt --outdir "+self.download
os.system(com1)
os.system(com2)
- HTML貌似不可用,目前无法修改字体大小
中心思想,生成txt文件,再用liberoffice转为PDF
import os
com1="echo "+info_text+":信息 >swap.txt"
com2="libreoffice --convert-to pdf:writer_pdf_Export swap.txt --outdir "+self.download
os.system(com1)
os.system(com2)
要发表评论,您必须先登录。