from fpdf import FPDF def text_to_pdf(text_file, pdf_file): with ... align="L") pdf.output(pdf_file) text_file = "simple.txt" pdf_file ...
確定! 回上一頁