Page 2 of 2

Re: Difference in exported PDF on Linux vs Windows

Posted: Tue Apr 06, 2021 11:17 pm
by Lech Kulikowski
Hello,

There are some fixes and changes in last releases. Please check the last build.

Thank you.

Re: Difference in exported PDF on Linux vs Windows

Posted: Tue Apr 27, 2021 10:23 am
by hosecloud.com
Lech Kulikowski wrote: Tue Apr 06, 2021 11:17 pm Hello,

There are some fixes and changes in last releases. Please check the last build.

Thank you.
Under windows platform is OK, but under linux docker still can't display Chinese correctly.

Re: Difference in exported PDF on Linux vs Windows

Posted: Wed Apr 28, 2021 1:17 pm
by Lech Kulikowski
Hello,

In this case, the problem is because your pdf-file does not include font files (Embedded Fonts checkbox in the export settings).
Therefore when displaying AcrobatReader uses some other fonts, which may not contain the desired characters.
For example, in the picture (taken as an example from the internet) the first font is included (Embedded Subset), the second is not included - so it is replaced (Actual Font: Adobe Sans MM).

Thank you.

Re: Difference in exported PDF on Linux vs Windows

Posted: Wed May 19, 2021 1:29 pm
by hosecloud.com
hosecloud.com wrote: Tue Apr 27, 2021 10:23 am
Lech Kulikowski wrote: Tue Apr 06, 2021 11:17 pm Hello,

There are some fixes and changes in last releases. Please check the last build.

Thank you.
Under windows platform is OK, but under linux docker still can't display Chinese correctly.
This is the same code that runs on windows and linux.
I just want to know how I can embed Chinese fonts in linux

Re: Difference in exported PDF on Linux vs Windows

Posted: Fri May 21, 2021 12:22 pm
by Lech Kulikowski
Hello,

You can use the following code:
Stimulsoft.Base.StiFontCollection.AddFontFile(font);

Thank you.