You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
And on my HTML page a I have that property set at some point:
window.status = "ready";
I am really used to use the --window-status argument with wkhtmltopdf.exe on Windows with very good success. And this sabe C program compiled with g++ over MINGW64 works just fine. Even a Go version using wkhtmltox.dll works a charm. (What I'm trying to do actually is to create a docker image of this program that is working great on my laptop Windows/MINGW64.)
But for some reason it does not work on that alpine image I just built. My custom pdf_c_api.c program not work, neither the very own wkhtmltopdf. They hang forever. If I remove the parameter load.windowStatus in the C program or the equivalent --window-status argument with wkhtmltopdf, they just work with no problem (save a few warnings you can see below).
/app # wkhtmltopdf --window-status ready sample1.html sample1.pdf
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/xorg/modules/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/xorg/modules/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/xorg/modules/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/xorg/modules/dri)
Loading page (1/2)
[============================================================] 100%
It eliminates those "libEGL warning: DRI2: failed to open swrast" messages. Is it recommended to add it to the image? I'm is it really used or is it only part of the whole thing but not necessarily used by wkhtmltopdf?
There is already an issue in wkhtmltopdf/packaging repository. Here: wkhtmltopdf/packaging#2 you can find some information including links to working docker images. But there is no solution at the moment.
I built an alpine docker image with wkhtmltopdf, doing the following:
Then I did a little modification on the pdf_c_api.c to convert a simple HTML page to PDF:
And on my HTML page a I have that property set at some point:
window.status = "ready";
I am really used to use the --window-status argument with wkhtmltopdf.exe on Windows with very good success. And this sabe C program compiled with g++ over MINGW64 works just fine. Even a Go version using wkhtmltox.dll works a charm. (What I'm trying to do actually is to create a docker image of this program that is working great on my laptop Windows/MINGW64.)
But for some reason it does not work on that alpine image I just built. My custom pdf_c_api.c program not work, neither the very own wkhtmltopdf. They hang forever. If I remove the parameter load.windowStatus in the C program or the equivalent --window-status argument with wkhtmltopdf, they just work with no problem (save a few warnings you can see below).
This is what I'm providing as far as X goes:
If you guys can provide any help that will be very appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: