The system provides means for modifying the look and feel of printable invoices. It is possible to change invoice style and formatting, modify heading labels, or add custom text. In addition, if you send invoices in windowed envelopes, you have the option to modify the address block position to fit the window size.
Business Manager also helps you create printable invoices from PDF templates that include watermarks, images or other information.
To update the appearance of printable invoices:
If your printable invoice requires more advanced customization, you are able to directly modify the code responsible for generating invoices in PDF format. To generate PDF documents, the code uses the TCPDF library. Refer to to learn how to modify PDF generation code.
The invoice rendering code is located at <BM_dir>
/lib-billing/include/config/PDFInvoice.example.php directory. Here <BM_dir> stands for the directory to which Business Manager was installed. Typically, it is /usr/local/plesk-billing on FreeBSD and RPM-based Linux systems, and
/opt/plesk-billing on deb-based Linux systems.
To add a PDF template:
stationery.pdf, and put it into one of these directories depending on your OS:
The system searches for this file and uses it as a PDF template if it is found.
For experienced administrators, Business Manager provides an option to deeply modify printable invoices appearance by editing the PHP script that generates them -
PDFInvoice.php. To generate PDF invoices, the script uses the TCPDF and FPDI libraries. For more information on these libraries, refer to the following sites:
PDFInvoice.php is located in the following directory: