Hello,
I have a .NET core application that uses stimulsoft angular net core 2021.2.4. When I try to save my report in the viewer on my development windows machine the exported file is fine (text is showing correctly). But when I deployed that application to a linux (docker) machine, the saved/exported PDF suddenly has issues (long text all written in one line. See picture below : ). The version 2020.5.2 however did not have this issue. Could this be some kind font issue between available linux fonts?
Best regards
Issues with text when exporting to PDF on production Linux server
-
- Posts: 18
- Joined: Thu Nov 05, 2020 2:14 pm
-
- Posts: 6302
- Joined: Tue Mar 20, 2018 5:34 am
Re: Issues with text when exporting to PDF on production Linux server
Hello,
Please check that used fonts are available on the docker machine, or add it in the font collection before exporting.
Thank you.
Please check that used fonts are available on the docker machine, or add it in the font collection before exporting.
Thank you.
-
- Posts: 18
- Joined: Thu Nov 05, 2020 2:14 pm
Re: Issues with text when exporting to PDF on production Linux server
I have tried adding fonts from local file with this function "StiFontCollection.AddFontFile(file.FullName);". I got more fonts but the issue still persists.
I found a similar issue from another post ( viewtopic.php?t=57196 ).
From the post:
I also tried this with the function LoadFonts() and loadDocumentFonst(), but could not find anything useful in the documentation and the issue is still there.
My docker has "libxml2", "libc6-dev", "libgdiplus", "libx11-devIs" libraries installed.
Is there anything else I can do?
I found a similar issue from another post ( viewtopic.php?t=57196 ).
From the post:
It seems like the PDF exporter has issues drawing text. I have tried using different fonts, but without success.Also, we have found another issue in GdiPlus for Linux. The Measure/Draw text methods work if the font is installed in the system.
So these files should be installed on the system too or you get the wrong width of the symbols.
I also tried this with the function LoadFonts() and loadDocumentFonst(), but could not find anything useful in the documentation and the issue is still there.
My docker has "libxml2", "libc6-dev", "libgdiplus", "libx11-devIs" libraries installed.
Is there anything else I can do?
-
- Posts: 6302
- Joined: Tue Mar 20, 2018 5:34 am
Re: Issues with text when exporting to PDF on production Linux server
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
#5089
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
#5089
-
- Posts: 6302
- Joined: Tue Mar 20, 2018 5:34 am
Re: Issues with text when exporting to PDF on production Linux server
Hello,
Please check the last release build 2021.4.1
Thank you.
Please check the last release build 2021.4.1
Thank you.