Jump to content

Unicode in PDF Invoices


GKey

Recommended Posts

Hello,

I am experimenting with using Unicode in Client Profile fields and at the moment I'm stuck with some problems in PDF invoices.

In PDF Invoice Unicode text appears in its "raw" form (like & # 4 3 1 6 ; ).

Could anyone advice how could I make Unicode code visible in PDF ?

Thanks in advance

Link to comment
Share on other sites

I am not sure if this answer your question.

The script used to generate PDF in WHMCS I guess is fpdf.

 

However, the original version of fpdf (ie. the one in WHMCS) do not support multibyte character (I think)

 

There are some PHP class from the fpdf.org site that extend the orignal fpdf class and make it to support some multibyte character like japanese, chinese, etc....

 

I modified the pdfconfig.php so that it use the extended class to generate the acrobat file.

I can successfully create an readable pdf invoice in chinese, you may check to see if you can modify those class to support unicode....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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