We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image is not displaying while converting docx to pdf

I inserted an image at specific bookmark in word document and then save that document into pdf file using doc.Save(), i can see the image in word document but not in pdf document in webserver, i can see the image in both word and pdf document in my local development machine, any idea what is missing in deployed version. My application is developed using .net core 3.1

@pratikpawarr

Please call Document.UpdatePageLayout method before saving document to PDF. If you still face problem, please ZIP and attach your input Word document along with simplified code example to reproduce the same issue at our end. We will investigate the issue and provide you more information on it.

@pratikpawarr most likely your application is deployed to Linux server, but the development environment is Windows.
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 refference 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.
Please let us know if you still face any issue while using Aspose.Words.

@alexey.noskov
Thanks for support, it got resolved by using SkiaSharp.NativeAssets.Linux.NoDependencies.
Thank you so much.