How to install wkhtmltopdf and configure in PHPKB?Estimated Reading Time: 1 Minutes
wkHTMLtoPDF is an open-source and cross-platform tool that can convert HTML pages to PDF. This is a command-line utility and it is pretty easy to use. The syntax for using the tool is fairly simple, enter the name wkhtmltopdf, followed by the URL of the web page, and the name of the PDF that you want to create, like so.
wkhtmltopdf URL filename.pdf
PHPKB knowledge base software uses this tool to facilitate exporting knowledge base articles to PDF format.
- Download an appropriate version of wkHTMLtoPDF library from http://wkhtmltopdf.org
- If you are on Windows operating system then do install it under C:\ drive (for example c:\wkhtmltopdf). On Linux/UNIX, you can install it under /usr/local/bin and make sure wkhtmltopdf has execute permissions.
- Configure its path in PHPKB knowledge base software. For that, go to: "Dashboard > Tools > Manage Settings > Miscellaneous" and enter its path in wkHTMLtoPDF Path box.
Save your changes. That’s all!
- Applicable To: Standard Edition, Standard (Multi-Language) Edition, Enterprise Edition (MySQL), Enterprise Multi-Language Edition (MySQL), Enterprise Edition (SQL Server), Enterprise Multi-Language Edition (SQL Server)