Difference in exported PDF on Linux vs Windows

Stimulsoft Reports.NET discussion
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Difference in exported PDF on Linux vs Windows

Post by Lech Kulikowski »

Hello,

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

Thank you.
hosecloud.com
Posts: 13
Joined: Thu Mar 05, 2020 9:47 am

Re: Difference in exported PDF on Linux vs Windows

Post 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.
Attachments
windows-TwoSimpleLists_2021-27-04_18-26-56.pdf
(125.15 KiB) Downloaded 179 times
TwoSimpleLists_2021-27-04_10-19-56.pdf
(37.39 KiB) Downloaded 198 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Difference in exported PDF on Linux vs Windows

Post 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.
Attachments
photo_2021-04-28_15-08-46.jpg
photo_2021-04-28_15-08-46.jpg (39.94 KiB) Viewed 2746 times
hosecloud.com
Posts: 13
Joined: Thu Mar 05, 2020 9:47 am

Re: Difference in exported PDF on Linux vs Windows

Post 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
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Difference in exported PDF on Linux vs Windows

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply