NetCodre Aspose.Words Alpine environment word to pdf embedded picture loss

NetCodre Aspose.Words Alpine environment word to pdf embedded picture loss, the Aspose.Words version is 19.20, Windows environment pictures no problem, is there any bosses to explain SkiaSharp. NativeAssets. Linux and Goelze SkiaSharp. NativeAssets. AlpineLinux nuget packages are already installed, But still not.

@zhaoyarong

Can you please provide more details about the specific issue you are facing with embedded pictures loss when converting Word to PDF in the Alpine environment? What error messages, if any, are you encountering?

docker container installed alpine 3.18 with no errors reported in the container

@zhaoyarong Aspose.Words for .NET Standard and .NET Core use SkiaSharp to deal with graphics, to make it work on Linux you have to add reference either to SkiaSharp.NativeAssets.Linux or to SkiaSharp.NativeAssets.Linux.NoDependencies

If you add reference to SkiaSharp.NativeAssets.Linux, you should also install libfontconfig1 in your system. SkiaSharp.NativeAssets.Linux depends on this library. You can use the following command to install it:

apt-get update && apt-get install -y libfontconfig1

If you do not have rights to install packages, or other reasons not to install libfontconfig1, you can simply use SkiaSharp.NativeAssets.Linux.NoDependencies , which does not require installation of libfontconfig1.

Here are dependencies in my test app:

<PackageReference Include="Aspose.Words" Version="24.12.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" />