adrg / go-wkhtmltopdf

Handcrafted Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface
https://pkg.go.dev/github.com/adrg/go-wkhtmltopdf
MIT License
249 stars 21 forks source link

Do I need dependencies on destination Windows PC? #10

Closed frederikhors closed 3 years ago

frederikhors commented 3 years ago

If I compile for Windows my Golang project can I use the executable on another machine without wkhtmltopdf/wkhtmltox dependencies installed on that machine?

adrg commented 3 years ago

Hi @frederikhors. No, you don't have to install wkhtmltox if you want to run your executable on other machines. However, you will need to ship your application with wkhtmltox.dll. As long as your executable and the DLL file are in the same directory, you should be able to run your application.