Skip to main content

General

Invoices & Quotes

Here you can configure the addon to automatically check if the invoicepdf.tpl and quotepdf.tpl template files point to BestPDF. A common scenario is that updating the template would overwrite those files and effectively deactivate BestPDF.

You can also enable automatic fixing of the template files, so that BestPDF continues working.

Date format

Choose whether to use the WHMCS setting for date formatting, or if to format automatically according to the client’s country and language.

Preview thumbnails

BestPDF supports ImageMagick, GraphicsMagick and Poppler for generating preview thumbnails.

Select the mode you prefer and specify the path to the binary. Typically, for ImageMagick and GraphicsMagic it is convert and for Poppler it is pdftoppm.

Most Linux distributions offer packages for either one of these utilities. Here are some example commands for the most common distributions:

Install the required package with any of these commands, depending on which one you want to use:

sudo apt install poppler-utils
sudo apt install imagemagick ghostscript
sudo apt install graphicsmagick ghostscript

Error handling

The behavior on errors can be configured here. Either have BestPDF fallback to the parent template (and thus classic WHMCS PDF rendering) or throw the error. A common error might be an expired BestPDF license.

Data path

Here you can specify a full path for the BestPDF data directory. By default, the directory is just the module’s directory. However, we recommend specifying a separate directory outside of the WHMCS root. This keeps the files safer and especially makes upgrades easier, allowing you to delete and reupload the BestPDF module without losing any files.