Keep in mind that you will need more developer knowledge if you are looking to make big changes to the PDF design, if you don’t, you should consider hiring a developer to do this for you.
The invoice PDF template is located in application/views/themes/perfex/views/invoicepdf.php. With Perfex you have the ability to edit all the files located on application/views without editing the core files so in this case you won’t need to worry the updates except if any huge changes made in the files, check the link below for more information, in this case, your filename should be my_invoicepdf.php
Editing the Text and the Content of the PDF document.
You can customize the PDF Invoices add or remove some text changing your layout or images. Perfex CRM uses the TCPDF library for generating PDF documents.
Using this TCPDF Library you can edit the PDF templates. Note that you will need PHP knowledge to modify the file.
Adding a Custom PDF Logo
Probably you will have problems with PNG images with transparency that are handled in a different way depending on the php-imagick or php-gd version used. Try to update php-imagick and disable php-gd, if you leave this field blank the uploaded company logo will be used.
Go to Setup->Settings->PDF -> Custom PDF Company Logo URL. You can adjust your logo width also see picture below.
If you need to customize the items tables (HTML and PDF), the best is to take a look in application/libraries/App_items_table.php
PDF Document Formats
You can find all PDF document formats in Setup->Settings->PDF->Document Formats.
You can always adjust one template that fit for your needs based on your colors, font sizes etc.. and use it for your own requirements.
PDF Font Family
When you first purchase CRM the PDF font freesans will be used.
This font is the default because of support UTF-8. PDF files may be larger using this font if your company does not need UTF-8 support and your customers are not using any special characters in their data or in the language you are using you can change to font to Eq. Helvetica or try changing the font until it best fits for your requirements.
- For Arabic characters use font: dejavusans or aealarabiya or aefurat
- For Japanese and Chineese use font: droidsansfallback
- For Cyrlilic characters use font: freesans
Changing the font is available from the settings at Setup->Settings->PDF
Changing Invoice/Estimate PDF Heading
If you need to change the heading on the right side (see images below for more info) for estimates and invoices you can overwrite the translation text by creating custom_lang.php, read more here.
Change Heading to Invoices
Language key: $lang[‘invoice_pdf_heading’] = ‘Invoice’;
Change heading to Estimates
Language key: $lang[‘estimate_pdf_heading’] = ‘Estimate’;
Also you can find more options in Setup->Settings->PDF. Check the pictures below.
- If customer language is System Default the default language that is selected in Setup->Settings->Localization will be used on PDF documents.
- When you are in the admin area and system/staff language is e.q English and customer default language is Spanish the invoice will be still downloaded in English, if you want when you are in the admin area, to download the PDF documents in customers language, check Setup->Settings->Localization the option Output client PDF documents from admin area in client language
When the customer will view the invoice or download the invoice PDF from customers invoice preview area, he/she will be able to see the invoice into his default language that is set in the customer profile.