Skip to Content

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.

INSTRUCTIONS:

  1. Download an appropriate version of wkHTMLtoPDF library from http://wkhtmltopdf.org
  2. 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.
  3. 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)
How to install wkhtmltopdf and configure in PHPKB?
  • COMMENT