KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

PDF Font Issue #976

Open Kasun Wijayamanna opened this topic on on Jul 5 - 8 comments

Kasun Wijayamanna commented on Jul 5

Hi team,

I have used Arial font to my PDF export function. It worked fine in local. But in Linux sever Pdf Font family does not accept any fonts. It takes default font only. Can you please advise how to use the font family in Linux PDF export. Thanks

KoolReport commented on Jul 5

It is because Linux may not have the fonts as your window so you may read some more here.

Kasun Wijayamanna commented on Jul 9

Thanks for your response and concern. I have been gathering the link which you have sent. I have Codeigniter project in CPANEL. I don't find the folder name usr/share/fonts in my Linux server. Can you please help me to how to install the font in Linux server. It's very emergency, please help as soon as possible team.

KoolReport commented on Jul 11

Are you using shared host

Kasun Wijayamanna commented on Jul 25

Hi Team,

No, We are not using any shared host.we have a dedicated server. it runs on centos 7. Can you please Help me to short out the issue as soon as possible.  I am not able to find this folder in my cpanel usr/share/fonts
KoolReport commented on Jul 25

If you could not find the folder usr/share/fonts, please try to create one to see how.

Kasun Wijayamanna commented on Jul 25

Sorry for asking, I don't have any ideas. Can you please advise where I have to create the folder. Within codeigniter project or some other place.

KoolReport commented on Jul 25

The folder "/usr/share/fonts" should be in root of your server, not in your app. This is totally not related to your codeigniter. The phatomjs use linux system font to generate pdf so you need to install font for centos. You may search this term "how to install fonts for centos".

Kasun Wijayamanna commented on Jul 25

We have installed fonts in server. It is showing the fonts when run fc-list.

However, the reports PDF download is not picking these fonts. I was going through the web about panthomjs issue with PDF fonts. In several posts it says this is a bug in the latest version. Do you have the linux old version (1.8) of panthomjs that we can copy to see if it works?

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport
help needed

Export