Retain Pictures during Word to PDF Conversion in C# over Linux

I’m experiencing the same problem. Under Windows everything is OK. Under Linux there are no any pictures in resulting PDF. 21.8.0, 21.10.0 - never mind.

@miiihus,

Please ZIP and upload your input Word document containing the pictures and Aspose.Words generated PDF file on Linux showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.

Go.zip (58.7 KB)
Here you are.

@miiihus Aspose.Words for .NET Standard uses 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.

1 Like

Thank you kind sir!