首页 > 解决方案 > 我需要有关 python fpdf 的帮助

问题描述

我在使用 python fpdf 时遇到问题。我正在尝试创建一个 pdf。当我尝试使用多单元格方法放置多个文本时。它显示了一些错误位置参数,后跟关键字参数。

我已经粘贴了语法。如果语法有任何问题,请更正并回答我。

pdf.multi_cell(w = 40,h = 40,txt = "9th June 2021 Ref: SR-PEPL0010", 
f"Dear Mr.{name}", 
"Barakhu",
"Thanks for expressing interest in Pleasant Energy as your solar solution provider; we on behalf of Pleasant",
"Energy are pleased to submit a proposal of intelligent solar energy system for your school as requested.",
"We are proposing a solution that achieves the best energy cost savings for you. And we believe this represents a good investment for your future well-being. In this proposal, we have taken into account your particular needs and requirements, your energy requirements, and include a summary of any available local, state and federal incentives.",
"We are committed to provide complete satisfaction to our customers with quality products and services. The next step is to sign the necessary agreements so we can reserve your rebates and begin the engineering and permitting processes. ",
"We look forward to helping you achieve more energy independence, providing a good investment for years to come, and helping you make a more positive environmental impact. I will follow-up with you shortly to review our proposal in more detail and to answer any questions if you may have. ",
"Regards",  
f"{operator},Chief Executive Officer", 
f"Mobile: {pno} ")

标签: pythonpdftextfpdf

解决方案


推荐阅读