当我想用pdf替换html文件时,单击运行时出现错误:模块'pdfkit'没有属性'configuration'
import pdfkit
path_wkhtmltopdf = 'C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe'
config = pdfkit.configuration(wkhtmltopdf=path_wkhtmltopdf)
options = {
'zoom': 1.00,
'page-size':'A3',
'encoding':'utf-8',
'margin-top':'0cm',
'margin-bottom':'0cm',
'margin-left':'0cm',
'margin-right':'0cm'
}
pdfkit.from_file(report.html,report.pdf,configuration=config,options=options)