Click here to Skip to main content
14,974,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I'm using FPDF for a data import in PHP. My fonts are 'Sinhala UNICODE' but when I use the same in FPDF I can see the properly. How can I see the same as in HTML/PHP page in the pdf file, any comments?

Thanks
Posted
Comments
   
What is "HTML/PHP page in the pdf file"? :-)
—SA
CodingLover 1-Sep-13 22:13pm
   
I have a define label like this,

define('LABEL_033', 'සිංහ සමාජ පරිපාලන වාර්ථා පෝරමය');

Once I put the LABEL_033 in the page (php page with all the HTMLs) I can properly see the text. However when I add that in FPDF, in a cell as a string I cannot see that properly, but some annoying characters.
enhzflep 2-Sep-13 0:18am
   
CodingLover 5-Sep-13 2:37am
   
I tried that too. But it didn't work with Sinhala fonts, basically I couldn't create all formats out of the true type I have.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900