Options problem
pdf = wkhtmltopdf.fromString(content, { 'footer-right':'Page [page] of [toPage]' }); does not work on Linux. Works from command line.
wkhtmltopdf has fail. - Command: /opt/wkhtmltox/bin/wkhtmltopdf --quiet --footer-right "Page [page] of [toPage]" - /opt/coldfusion/cfusion/runtime/conf/Catalina/localhost/tmp/wkhtmltopdf69342960700972779.tmp - Exit code: 1 - Message: Error: Failed loading page http://of (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: HostNotFoundError
Error: Failed loading page http://of (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: HostNotFoundError
Looks like when option has a space:
wkhtmltopdf has fail. - Command: /opt/wkhtmltox/bin/wkhtmltopdf --quiet --title test test - /opt/coldfusion/cfusion/runtime/conf/Catalina/localhost/tmp/wkhtmltopdf2771392900161365326.tmp - Exit code: 1 - Message: Error: Failed loading page http://test (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: HostNotFoundError
Error: Failed loading page http://test (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: HostNotFoundError
Tried with '"' and without.
Hi
The argument serialization is quite basic. Honestly I never used theses options ;)
The method _fullCommand use a simple arrayToList(). It could be a little smarter by surrounding string with quotes...
I don't work on this project anymore but I am open to review contributions, feel free to submit a pull request.
I have the same problem. Does anyone have a solution to this problem?