Sam*_*Sam 3 coldfusion coldfusionbuilder wkhtmltopdf coldfusion-8 cfexecute
我刚刚安装了wkhtmltopdf,它将网页转换为pdf.
我可以从服务器上的命令行运行它,如下所示:
wkhtmltopdf http://www.google.co.uk c:\google.pdf
Run Code Online (Sandbox Code Playgroud)
添加了wkhtmltopdf添加到路径环境变量.exe的真正路径是C:\ Program Files\wkhtmltopdf\wkhtmltopdf.exe
我现在想使用cfexecute在ColdFusion 8上运行它.
<cfexecute name="c:\Program Files\wkhtmltopdf\wkhtmltopdf.exe"
arguments="wkhtmltopdf http://www.google.com c:\google.pdf"
timeout="10" />
Run Code Online (Sandbox Code Playgroud)
我尝试了一些不同的变化,但似乎无法让它工作.
我也有一些"错误5访问被拒绝"消息但我知道这仍然可能是语法问题而不是权利问题.
任何人都可以看到我的代码问题?
好的工作!...
<cfexecute name="c:\Program Files\wkhtmltopdf\wkhtmltopdf.exe"
arguments="http://www.google.com C:\google.pdf"
timeout="10" />
Run Code Online (Sandbox Code Playgroud)
语法与我在Windows中运行的命令行略有不同.
| 归档时间: |
|
| 查看次数: |
4043 次 |
| 最近记录: |