Regarding wkhtmltopdf:
First of all it is wkhtmltopdf 0.12.5 (with patched qt)
History:
We startet with wkhtmltopdf out of EPEL-Repository and run into some trouble with the installation path. It was installed in /usr/bin/. I tried to configure the installation path within the plugin but it failed. The plugin always looked for the wkhtmltopdf in /usr/local/bin. The path seems to be hardcoded somewhere - it seems to be another issue.
So we put a symlink into /usr/local/bin refering to /usr/bin/wkhtmltopdf. Now we got aware of the wrong version without patched qt.
So we installed the mentioned version from wkhtmltopdf.org directly into /usr/local/bin, made some tests and got the pdf-results without any text.
We found the following messages in the log:
[4a500] [2019-07-29 11:27:02.299159] LernweltITSicherheit_root.DEBUG: ilWkhtmlToPdfRendererPlugin::runCommandLine:164 ilWebkitHtmlToPdfTransformer command line config: --zoom 1 --enable-external-links --disable-forms --orientation Portrait --page-size A4 --javascript-delay 2000 --margin-bottom 0.5cm --margin-left 0.5cm --margin-right 2cm --margin-top 2cm --header-left "dies ist ein Testkopf" --header-center "" --header-right "" --header-line --quiet /var/lib/ilias/files/LernweltITSicherheit/temp/tmp5d3ebbe41cb1a.html /var/lib/ilias/files/LernweltITSicherheit/temp/tmp5d3ebbe41cd6a.pdf 2>&1
[4a500] [2019-07-29 11:27:02.299328] LernweltITSicherheit_root.DEBUG: ilWkhtmlToPdfRendererPlugin::runCommandLine:164 ilWebkitHtmlToPdfTransformer return value line 0 : Exit with code 1 due to network error: ContentNotFoundError
Checking the temporary "source file" /var/lib/ilias/files/LernweltITSicherheit/temp/tmp5d3ebbe41cb1a.html (created by the plugin I assume) we found the following relative path in font-face statements:
src: url('fonts/OpenSansWeb/OpenSans-Regular.woff2') format('woff2'), url('fonts/OpenSansWeb/OpenSans-Regular.woff') format('woff');
It looks like it is just taken from the default skins CSS (delos). The fonts folder is available within skin folder.
But so far as I know the relative path used in a html-file is relative to the path of html-file itself. But in /var/lib/ilias/files/LernweltITSicherheit/temp/ wasn't a fonts-folder available.
Thats why we copied it there from delos respectively from our own skin (doesn't matter I checked pdf-export with both skins).
In general it works now, but the workaround is not really that smart.
Do you have any suggestions?
Regards Andreas