Enable Exporting to PDF

To export multiple articles to PDF or HTML files you need to:

Using WKHTMLTOPDF (recommended)

Update the setting to point to WKHTMLTOPDF

Once you have installed WKHTMLTOPDF, you also need to set the correct path it in the Settings.

Test WKHTMLTOPDF from command line

To convert a single web page type:

$ /path_to_wkhtmltopdf/wkhtmltopdf input.html output.pdf

Test using PHP and included test file:

$ php -r "exec('/path_to_wkhtmltopdf/wkhtmltopdf http://path_to_kbp/admin/extra/plugin/export2/template/export_test.html output.pdf');"


Using HTMLDOC

Note: At this time there is no commercial support for the HTMLDOC. The windows binaries can be found here.

Update the setting to point to HTMLDOC

Once you have installed HTMLDOC, you also need to set the correct path it in the Settings.

Test HTMLDOC from command line

To convert a single web page type:

$ /path_to_htmldoc/htmldoc --webpage -f output.pdf filename.html

Test using PHP and included test file:

$ cd /path/to/kbp_directory 
$ php -r "system('/path_to_htmldoc/htmldoc --webpage -f output.pdf admin/extra/plugin/export/template/export_test.html');"


Buy the plugin

Export functionality is not available with the default KBPublisher package. You must purchase it separately.
Please see this article how to buy the plugin.

Add the plugin key to KBPublisher

You should have received an email with you plug-in key. If you can't find the email,
you can also get this from the My Licenses tab in your client area on the KBPublisher website.  

Tip:

----------------------------------------------------------------------
This functionality works in version 4.0 and above



Article ID: 303
Last updated: 10 Oct, 2019
Revision: 14
User Manual v8.0 -> Exporting -> Enable Exporting to PDF
https://www.kbpublisher.com/kb/enable-exporting-to-pdf_303.html