wkHTMLtoPDF logo

wkHTMLtoPDF Website

taoBooklet is a TAO extension that allows to create booklets, which are essentially printable tests. However this extension needs a third-party tool to generate the PDF files - you will need to install wkhtmltopdf on your server.

All three major OS brands are supported, and you should find the right binaries at the download page of the official wkhtmltopdf website. You can also directly compile the source code and build your own platform binaries.

Note: We successfully tested wkhtmltopdf on MacOS, Linux and Windows 10 machines but won't guarantee that it runs on your system.

If you are using Ubuntu you can use these commands:

sudo apt-get update
sudo apt-get install wkhtmltopdf

However, depending on the version of your system, the installed version of wkhtmltopdf may not fully comply with the requirements, as there are some issues with QT when trying to render header and footers. If you encounter errors when generating the document, you should install the tool using these commands:

sudo apt-get update
sudo apt-get install libxrender1 fontconfig xvfb
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P /tmp/
cd /usr/share/
sudo tar xf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo ln -s /usr/share/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf