出现错误:模块“ pdfkit”没有属性“配置”

当我想用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)
salanganeyuhaiyan 回答:出现错误:模块“ pdfkit”没有属性“配置”

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3007728.html

大家都在问