coldfusion - wkhtmltoimage 找不到 ColdFusion 组件或接口库
问题描述
我正在尝试将 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 使用相同的路径并且它工作正常。我错过了什么?我是否称组件错误?
解决方案
推荐阅读
- linux - 用 read() 系统调用覆盖 Shellcode?
- python - 在每个拆分上运行一个循环
- python - 每次交货多次取货,但无法找到部分解决方案
- viewer - 如何从 table1 包中查看查看器
- flutter - 复杂的渐变
- vb.net - 即使 MSL 在资源中,如何在运行时在 EF 模型的概念信息和存储信息之间进行转换?
- apache-spark - 当 shuffle 分区大于 200 时会发生什么(数据帧中的 spark.sql.shuffle.partitions 200(默认情况下))
- javascript - 当脚本加载为“preload”/“modulepreload”时会发生什么?
- node.js - 如何在mongooes中取消事件updatedAt
- sql-server - 创建一个包含所有可能组合的变量,具体取决于关联变量是 1 还是 0