I have made a web based software based on YII in which there is two functionality. 1) export to excel 2) export to PDF
The software is in two languages.
- English
- Gujarati.
To input either in Gujarati and English, I am using "Google input tools"
To export, I am using excelview YII extension for excel and tcpdf for exporting to PDF. Though exporting to excel is working fine for both languages, it is not working for PDF. Font rendering has issues.
The issue is same as here Which PDF Generation API (Java) supports Gujarati Font?
I dont know what to do and have tried everything. Can we generate the pdf without specifying any fonts? The setFonts
function of tcpdf might be causing an issue?
I have not used any fonts on the site for Gujarati. I am only using UTF-8 encoding and database with UTF-8 encoding and columns with UTF8-general-ci.
Any help will be appreciated.