Cannot render image in Aspose Word/PDF using .NET core on Linux

Hello,

I have an issue when render images from .docx file and convert to .pdf using Aspose PDF on .NET core on Linux

Step to reproduce:

  1. Create a .docx file include some images (PNG & JPEG) and text

  2. Read & write file using this code:

using Aspose.Words;
...
private Document _doc;           
_doc = new Document("template.docx");
_doc.Save("output.pdf");
  1. Examine the output file: the output image is blank (with a blank placeholder)

Note: If saving file in .docx, the image is remained.

Please help me to check this issue: Does the Aspose Word support Linux .NET core when convert .docx to .pdf?

Thanks and Best regards.

It ought to work, we had similar issues which were caused by .tiff images which were in the .docx file. We converted those to .png first, did the render and hey presto. Everything was fine.

@tienlx

Please try the latest version of Aspose.Words for .NET 19.4. If you still face problem, please ZIP and attach your input and output documents here for testing. We will investigate the issue and provide you more information on it.

If Aspose.Words for .NET Standard is intended to be used in Linux environment, an additional NuGet package should be referenced to make it work correctly with graphics: SkiaSharp.NativeAssets.Linux for Ubuntu (it also should work on most Debian-based Linux distributions) or Goelze.SkiaSharp.NativeAssets.AlpineLinux for Alpine Linux.

@tienlx

We always appreciate positive feedback from our customers. We suggest you please read the following article. Hope this helps you.
How to Run Aspose.Words Docker