Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to How to use the wkhtmltopdf PDF converter

Re: wkhtmltopdf PDF converter cannot be used

I could solve the basic startup problems. I will write a more detailed description later on. Key issues:

a) The static version of wkhtmltopdf isn't overly static. It needs some few libraries of X that have to be downloaded _somewhere else_.
b) The current "latest" version 0.11 is dysfunctional (dies) for many people. Also the direct predecessor 0.10rc2. Go back to 0.99, that does the trick.
c) Do not start wkhtmltopdf directly from TikiWiki via the setup on the Admin panel. You must use a small wrapper shell script that sets the path to the above mentiones X libraries and set the parameter --quiet (otherwise some stdout output will ruin the pdf).
d) Do not forget to set execution rights to wkhtmltopdf, all libraries and the wrapper script...

So, now I can generate PDFs. But not from within my wiki, only from the start page - as the inner wiki only visibly after login, and it looks like wkhtmltopdf loads pages over http/https without user credentials (should be better loading them locally, that could be handled by the wrapper shell, but I don't have time to write the parsing code right now).

But I saw somewhere a small text that addressed the login issue somehow.