in reply to Help with WKHTMLTOPDF

Did you install https://wkhtmltopdf.org/ and does it work from the command line?

Looks to me like you are running it on windows but it defaults to a looking for the binary in the default Linux path: /usr/bin/wkhtmltopdf .

And according to the POD of WKHTMLTOPDF the method bin_name must be used to specify the non-default path to the binary.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Help with WKHTMLTOPDF
by justin423 (Scribe) on Dec 08, 2023 at 02:14 UTC
    Yes, it works from a command prompt.
    C:\Strawberry\wkhtmltopdf\bin>wkhtmltopdf /temp/test.html /temp/test.p +df Loading pages (1/6) Counting pages (2/6) Resolving links (4/6) Loading headers and footers (5/6) Printing pages (6/6) Done Exit with code 1 due to network error: ProtocolUnknownError