Ubuntu 20.04 Focal, upgrade to 0.12.16-1 with Qt -> bootstrap and chart.js stopped working

47 views
Skip to first unread message

Pieter Claassen

unread,
Mar 18, 2021, 4:11:39 AM3/18/21
to wkhtmltopdf General
On Ubuntu 20.04 (Focal), the repo 0.12.15 (wkhtmltopdf) works fine but has no Qt patches installed. So no headers/footers.

When I install 0.12.16-1 from the website, I get no errors, but bootstrap stopped working (at least the grid didn’t work) and more importantly, chart.js doesn't render.

Debug log:
Image 3.png

I am using 
django-wkhtmltopdf==3.3.0
Charts.js==2.9.4
Bootstrap==4.4.1

My wkhtmltopdf specific configs are below.

Does anybody have  an idea what could have happened and what is the position on support bootstrap4 ?

Thanks in advance for your help,
Pieter


View.py

======

template_name = 'editor/renderer/renderers/base_renderer.html'
cmd_options = {'run-script': """javascript: $('.hideable').hide();""",
"javascript-delay": 1000,
"debug-javascript":True}
header_template = 'editor/renderer/printing_templates/header.html'
footer_template = 'editor/renderer/printing_templates/footer.html'


Settings.py

========

WKHTMLTOPDF_CMD_OPTIONS = {
'enable-local-file-access': True,
'quiet': False,
'javascript-delay': 2000
}


WIth 0.12.5
Image 1.png



And 0.12.16-1

Image 2.png

Reply all
Reply to author
Forward
0 new messages