我正在尝试将 wkhtmltoimage 与 Abram Adams image.cfc 一起使用。我不断收到错误消息“找不到 ColdFusion 组件或接口库”。我的代码如下:
<cfscript>
wkhtmltoimage = new customdesigner.com.wkhtmltoimage(binaryPath = 'C:\Program Files\wkhtmltopdf\bin\wkhtmltoimage.exe');
image = wkhtmltoimage.create({
'html': '#trim(form.data)#',
'quality':'100',
'encoding': 'utf-8'
//writeToFile = true, // true will write the file and return a struct containing the path (and other info)
//destination = "#expandPath('..\media\client\images\L#session.locationcode#-#form.filename#-#session.uuid#.jpg')#"
});
</cfscript>
我知道可执行路径是正确的,因为我对 htmltopdf 使用相同的路径并且它工作正常。我错过了什么?我是否称组件错误?