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. Image for the cookie policy date

Convert Word Doc to PDF Loses Chinese Characters

We have a word document that when converted to PDF we lost the chinese characters in the PDF generated.

Is Chinese supported in the pdf conversion process?

This is on version 15.3460.0.26

Attachment: Sample_d18f0dd0.zip

5 Replies

MJ Mohanaselvam Jothi Syncfusion Team September 13, 2017 06:35 AM UTC

Hi Damien,

Thank you for using Syncfusion product.

Yes, Chinese is supported in the PDF conversion using Essential DocIO. We suspect that the mentioned “Chinese characters are not preserved” while converting given Word document into PDF is raised due to Arial Unicode MS font missing in a production environment. If the mentioned font is not installed in your machine, then DocIO uses the “Microsoft Sans Serif” as the default font for all the uninstalled fonts in Word to PDF conversion. So, kindly install the mentioned font (Arial Unicode MS) in your machine and try to convert the Word document as PDF using Essential DocIO to resolve this issue.

If you are still facing the same issue means, kindly provide us output PDF document which generated at your end.

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



IT infrastructure Team September 20, 2017 03:33 AM UTC

We have ARIALUNI.TTF installed on the machine.

Is this the font the pdf conversion requires? 



MJ Mohanaselvam Jothi Syncfusion Team September 21, 2017 12:06 PM UTC

Hi Damien,

Thank you for your update.

Is this the font the pdf conversion requires?
No, “ARIALUNI“ font isn’t required for PDF conversion of the given input document.

In the provided input document, we have found that “Arial Unicode MS” font is used. So, “Arial Unicode MS” font need to be installed in the production environment when performing measuring process in Word to PDF conversion. We suggest you kindly install “Arial Unicode MS” font on your machine for converting input Word document into PDF without any preservation loss.

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



WI Wilton February 6, 2023 07:43 PM UTC

I am using .Net 6 and run on Linux. How to preserve the Chinese Character?



SB Suriya Balamurugan Syncfusion Team February 10, 2023 06:11 PM UTC

Hi Wilton,

While performing Word to PDF conversion in Linux, if the necessary fonts not installed in the environment, Essential DocIO uses the ”DejaVuSans” as default font for rendering the text. So, it preserves the contents with alternate fonts, and it doesn’t contain glyphs for Chinese characters. So, we suggest you to install the necessary fonts in the Linux environment in order to preserve the fonts in the generated PDF properly.

Refer below link to how to install necessary fonts in Linux containers,
https://help.syncfusion.com/file-formats/docio/faq#how-to-install-necessary-fonts-in-linux-containers

Refer below link to how to copy necessary fonts in Linux containers,
https://help.syncfusion.com/file-formats/docio/faq#how-to-copy-necessary-fonts-to-linux-containers

We have attached the example sample application to install necessary fonts in Linux containers and it can be downloaded from below link,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/Docker-1422583169

If you face difficulties to install the font in Linux environment, by having list of fonts in some folder, we suggest you use font substitution event to set the fonts for which is missing in production environment.

Using SubstituteFont event, you can identify the missed font and set the font stream during Word to PDF conversion. To know more about font substitution, please refer our documentation from the below link.
https://help.syncfusion.com/file-formats/docio/word-to-pdf#font-substitution

Otherwise, if Word document is docx format, we suggest you to embedding the necessary fonts in the input Word document using Microsoft Word application as like below and then convert this Word document to PDF using DocIO.


Loader.
Up arrow icon