Configure the wkhtmltopdf executable path
masterThe package automatically attempts to find the wkhtmltopdf executable by checking:
- The current directory
- The
PATHandPATHEXTenvironment directories - The
WKHTMLTOPDF_PATHenvironment variable
If you need to specify a custom path or change it during execution, use the SetPath() method.
Warning: Since Go 1.19, running executables from the current directory is restricted by the os/exec package.