Charts not created in PDF grid/report.

Hi, I tested the export to pdf function and it is not creating the charts in the production environment. Im using Ubuntu 18.04 LTS, scriptcase 9.3.

./wkhtmltopdf-amd64 --page-size A2 --orientation Portrait --header-right “[page]” https://www.websample.net/_lib/tmp/sc_grid_supervised_data_analysis_html_286h0kg2q3u175ssvh3b2308h6.html /var/www/mrt/_lib/tmp/sc_pdf_20190513165339_993_grid_supervised_data_analysis.pdf

Loading pages (1/6)
Warning: Failed to load https://www.websample.net/_lib/_lib/css/Sc9_Rhino/Sc9_Rhino_error.css (ignore)
Warning: Failed to load https://www.websample.net/_lib/_lib/css/Sc9_Rhino/Sc9_Rhino_errorLTR.css (ignore)
Warning: Failed to load https://www.websample.net/_lib/_lib/css/Sc9_Rhino/Sc9_Rhino_btngrp.css (ignore)
Warning: Failed to load https://www.websample.net/_lib/_lib/css/Sc9_Rhino/Sc9_Rhino_btngrpLTR.css (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_297aaaba11b7fecae1aa20a6f81fc4e1.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_7da0ee36912663f74f348082d145d4d0.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_87a55c63e8894c9dfabc61cc45e215a2.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_6241cd336494fe02b29c9e14d0776014.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_5cd64e9053dbd8dc94b54d9a2fcceb43.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_fdb5e63a2328db96091d8939ecea8ea0.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_adb813a9a2b4be07c46582bbeec40458.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_fdb5e63a2328db96091d8939ecea8ea0.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_6241cd336494fe02b29c9e14d0776014.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_87a55c63e8894c9dfabc61cc45e215a2.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_297aaaba11b7fecae1aa20a6f81fc4e1.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_7da0ee36912663f74f348082d145d4d0.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_5cd64e9053dbd8dc94b54d9a2fcceb43.png (ignore)
Warning: Failed to load https://www.websample.net/_lib/tmp/sc_pjs_png_adb813a9a2b4be07c46582bbeec40458.png (ignore)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)

Counting pages (2/6)
QFont::setPixelSize: Pixel size <= 0 (0)=====================] Object 1 of 1
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
Resolving links (4/6)

Loading headers and footers (5/6)
Printing pages (6/6)
QFont::setPixelSize: Pixel size <= 0 (0) ] Preparing
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)=====================] Page 9 of 9
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)

QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)

Hi,

Did you eventually find a solution for this issue? I encounter the exact same problem. I can generate pdf in local environment without any problem though. Once deployed, I get the same problem as you.

Thanks in advance.

Regards.

Yes, part of it was due to permissions in the file system. Making sure wkhtmltopdf has the proper permission as well as phantomjs. But I do recommend downloading the latest version of phantomjs and replacing the older version provided by scriptcase. I also narrowed down the problem to security settings in the server. When tls 1.1 and 1.0 was enabled the graphs loaded but, in my case that presented a security problem. The updated phantomjs file worked fine with tls 1.2.