首先,对不起我的英语。我有一个使用Python的Azure函数,我需要生成一个html,使用wkhtmltopdf转换成pdf并通过电子邮件发送它。
#generate temporally pdf
config = pdfkit.configuration(wkhtmltopdf="binary/wkhtmltopdf")
pdfkit.from_string(pdf_content, 'report.pdf',configuration=config, options={})
#read pdf and transform to Bytes
with o