ninetwentyfour/go-wkhtmltoimage

BinaryPath not set

Closed this issue · 1 comments

out, err := wkhtmltoimage.GenerateImage(&c)
Getting error while runnig above code.
"BinaryPath not set"

Got solution
c := wkhtmltoimage.ImageOptions{BinaryPath:"/usr/local/bin/wkhtmltoimage",Input: "./example.html", Format: "png"}