Hello,
There are some fixes and changes in last releases. Please check the last build.
Thank you.
Difference in exported PDF on Linux vs Windows
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
-
- Posts: 13
- Joined: Thu Mar 05, 2020 9:47 am
Re: Difference in exported PDF on Linux vs Windows
Under windows platform is OK, but under linux docker still can't display Chinese correctly.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.
- Attachments
-
- windows-TwoSimpleLists_2021-27-04_18-26-56.pdf
- (125.15 KiB) Downloaded 194 times
-
- TwoSimpleLists_2021-27-04_10-19-56.pdf
- (37.39 KiB) Downloaded 211 times
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Difference in exported PDF on Linux vs Windows
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.
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.
- Attachments
-
- photo_2021-04-28_15-08-46.jpg (39.94 KiB) Viewed 2912 times
-
- Posts: 13
- Joined: Thu Mar 05, 2020 9:47 am
Re: Difference in exported PDF on Linux vs Windows
This is the same code that runs on windows and linux.hosecloud.com wrote: ↑Tue Apr 27, 2021 10:23 amUnder windows platform is OK, but under linux docker still can't display Chinese correctly.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.
I just want to know how I can embed Chinese fonts in linux
-
- Posts: 6312
- Joined: Tue Mar 20, 2018 5:34 am
Re: Difference in exported PDF on Linux vs Windows
Hello,
You can use the following code:
Stimulsoft.Base.StiFontCollection.AddFontFile(font);
Thank you.
You can use the following code:
Stimulsoft.Base.StiFontCollection.AddFontFile(font);
Thank you.