- Home
- Forum
- ASP.NET MVC
- Convert Word Doc to PDF Loses Chinese Characters
Convert Word Doc to PDF Loses Chinese Characters
Attachment: Sample_d18f0dd0.zip
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
We have ARIALUNI.TTF installed on the machine.
Is this the font the pdf conversion requires?
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
I am using .Net 6 and run on Linux. How to preserve the Chinese Character?
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.
|
|
- 5 Replies
- 4 Participants
-
IT infrastructure Team
- Sep 12, 2017 06:50 AM UTC
- Feb 10, 2023 06:11 PM UTC