Coldfusion + Puppeteer (taking screenshot of website)
I have project that takes an html file and using Chrome headless it converts that html into a PDF. That all works great, the problem is that I want to be able to save that html file as a jpg thumbnail. I know you can do it using Puppeteer but I'm not sure how to get Puppeteer to execute using CFEXECUTE as puppeteer is run from the command line like this:
node testcase1.js
testcase1.js holds all the puppeteer code. If I run it direct from the command line it works perfectly.
i've tried using a cfexecute in various ways:
<cfexecute name="node.exe" arguments="testcase1.js">
<cfexecute name="C:\Program Files\nodejs\node.exe" arguments="testcase1.js">
but nothing happens, the page doesnt even error. I've tried adding an output variable to see any errors and its just blank.
Can anyone offer any advice to get this working?
