python - 我需要有关 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} ")
解决方案
推荐阅读
- reactjs - 传递道具(Vue / React)的正确方法是什么?分别传递对象或每个道具?
- python - Python中子数据帧中数据帧拆分的优化运行时间
- javascript - 夏令时 - 过去的日期
- javascript - Android Chrome Web Ble Api 启动通知错误
- java - 在我的函数头上收到使用 throws 关键字的警告
- django - 如何在django的字典中传递数据
- javascript - 如何通过使用 datepicker 单击按钮来获取日期数据?
- html - 如何在vscode的css文件中的所有未闭合行上添加分号?
- html - Swift - 从 HTML 中获取数据
- reactjs - ReactComponent 不能用作 spfx tsx webpart 中的 JSX 组件