We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Convert HTML to PDF with thai language become unreadable on linux server

Thread ID:

Created:

Updated:

Platform:

Replies:

146095 Jul 19,2019 10:22 AM UTC Aug 14,2019 06:55 AM UTC ASP.NET Core 5
loading
Tags: PDF
Sutthipong
Asked On July 19, 2019 10:22 AM UTC

I tried using HTML to PDF to generate PDF.
After test on Windows output file display correctly but on linux server Thai text part become unreadable.
The code and output is in attached file

Attachment: output_78620764.zip

Gowthamraj Kumar [Syncfusion]
Replied On July 22, 2019 01:20 PM UTC

Hi Sutthipong, 

Thank you for providing details, 

We are tried to reproduce the reported issue with provided details. We have created a simple sample with provided details and checked the conversion in Linux. Thai characters are preserved properly in the conversion. This issue may occurs due to missing of required font to preserve the text in Linux environment. Please make sure the required fonts files are installed properly in the machine and ensured the html file is displayed properly in web browser on Linux.  

We have attached the output document from below link, 

Please refer the below KB link for converting HTML to PDF in Linux, 

Regards, 
Gowthamraj K 


Sutthipong
Replied On July 31, 2019 09:18 AM UTC

Sorry for late response

How to check web display correctly in linux server if my server does not have GUI or I can use other linux machine to check web display.


Gowthamraj Kumar [Syncfusion]
Replied On July 31, 2019 12:58 PM UTC

Hi Sutthipong, 

Thank you for your update.  

Kindly add/install the required font files to your Linux machine and try the conversion. The reported issue only occurs if the required font is not available in the machine where the conversion take place. However, you can use any other Linux machine (configuration should be similar to your server machine) to check the html file is display properly or not. And please make sure whether the machines are having the same fonts. 

Regards, 
Gowthamraj K  


Sutthipong
Replied On August 13, 2019 10:53 AM UTC

After install xfonts package in my server machine.The converted document display correctly.
Maybe I forget to install it because it was server.

Gowthamraj Kumar [Syncfusion]
Replied On August 14, 2019 06:55 AM UTC

 
Hi Sutthipong,  
Thank you for your update. 
Regards, 
Gowthamraj K 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon