Jump to content
Sign in to follow this  

PDF Invoice - Capitalisation of Accent Characters

Recommended Posts

Due to a limitation in PHP you may find the translations of the "Paid" and "Unpaid" text on the PDF Invoices do not display upper-case accented characters correctly. The problem here is that the native PHP uppercase conversion functions cannot convert special characters into their upper-case equivalents.


There are 2 solutions :


1. Edit the language file to contain the uppercase version of the status text by default for invoices. ie. Change "Non payée" to "NON PAYÉE"


2. Make the following template change in the invoicepdf.tpl file:










For this second solution to work the MB String functions library needs to be compiled into the PHP build on your server (http://uk.php.net/mbstring).




Pdfaccent2.png --> Pdfaccent1.png

Share this post

Link to post
Share on other sites

is there a way to remove the box around the text?


# Payment Status

$endpage = $pdf->GetPage();



if ($status=="Cancelled") {

$statustext = $_LANG["invoicescancelled"];


} elseif ($status=="Unpaid") {

$statustext = $_LANG["invoicesunpaid"];


} elseif ($status=="Paid") {

$statustext = $_LANG["invoicespaid"];


} elseif ($status=="Refunded") {

$statustext = $_LANG["invoicesrefunded"];


} elseif ($status=="Collections") {

$statustext = $_LANG["invoicescollections"];








I just cant find the way to remove the box and just leave the text displayed

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated