To figure the issue out, we need the template file to reproduce the issue. Please zip your template Excel file and attach it here. We will look into it soon.
@agarwalashwani2020
By testing on the latest version v24.9 using sample files and the following sample code, we can obtain the correct results. Please refer to the attachment. out_net.jpg (818.8 KB)
Hi @agarwalashwani2020
For this issue, we tested on linux docker, net8, the problem can be repeated.
For a normal docker image, we recommend adding a single line to the Docker file:
COPY fonts/ /usr/share/fonts
You put the “fonts” directory in the local project directory, and then you put the font files into the “fonts” directory, and the fonts is installed into the Linux image.
In this case, the font in Excel file is “Garamond”, it can be found in windows font path.
This “SolutionA” copies fonts to linux docker, because Linux has very few default fonts. This solution ensures that your program can find the desired font from the Linux system path. SolutionA.png (42.9 KB)
However, in an AWS serverless environment, we are not sure if the above solution A is easy for you to implement.
You can also put the “fonts” directory in the local project directory, and run:
Aspose.Cells.FontConfigs.SetFontFolder(“fonts”, true);
This “SolutionB” do not copy any font file to linux docker, just make sure the program can find the font from the project path.
We recommend using solution A. if your ASW serverless project can not upload fonts to AWS, Please Use Solution B and let us know your results, thanks.