I'm trying to install wkhtmltopdf on my Mac using the following command:
brew install wkhtmltopdf
However, when I try to run wkhtmltopdf
command through the terminal, I encounter an error like this:
zsh: command not found: wkhtmltopdf
Then, I also tried to download wkhtmltopdf from here, choosing the one for macOS.
It downloaded a file named wkhtmltox-0.12.6-2.macos-cocoa.pkg
, but I don't know how to install that file because its extension is .pkg
.
Can someone help me deal with this issue?
Best Answer
For installing
pkg
in macOS, see the post Installing .pkg with terminal?The accepted answer by user nohillside suggests the following command:
It also notes :
The poster has installed the package using the following command:
Reference : How To Install and Run wkhtmltopdf on Mac OsX 10.7.3 for use in a PHP Application.