I have a HTML page with a table on it (attached to this)
I am trying to hide one of the columns at runtime. I know the JS is firing as I am outputting some text to the page and thats working (see div id poo
)
https://pastebin.com/iqMnYGgu <-- html here
If I open the page in a browser, the JS works as expected, but for some reason the wkhtmltopdf binary doesn't seem to like it
Wonder if its a problem with qt but how do I test that?
The wkhtmtopdf
command line I am using is:
# wkhtmltopdf-amd64 \
--encoding UTF-8 \
--margin-top 10 \
--margin-right 10 \
--margin-bottom 25 \
--margin-left 10 \
--page-size A4 \
--orientation portrait \
--dpi 300 \
--zoom 0.9 \
--header-spacing 30 \
--no-outline \
--no-stop-slow-scripts \
--disable-smart-shrinking \
--javascript-delay 5000 \
--debug-javascript /tmp_wkhtmlto_pdf_XlMAtk.html \
output.pdf
Any advise on how to debug this?
I've stayed away from jquery and have gone for vanilla JS which I thought would be better for all concerned.
Here is a visual description of the issue: