Doc to pdf Imaging Lost,how can I do

Aspose.words .net Version 18.12
developer Tools: VS2017+.net Core2.2
OS:Ubuntu 18.04 Centos 7
Code:

string docx = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.docx");
string pdf = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.pdf");
string html = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.Png");
Console.WriteLine(docx);
Aspose.Words.Document doc = new Aspose.Words.Document(docx);
PdfSaveOptions options = new PdfSaveOptions();
options.UseCoreFonts = true;
options.ImageCompression = PdfImageCompression.Jpeg;
options.PreblendImages = true;
options.JpegQuality = 90;
doc.Save(pdf, options);
doc.Save(html, Aspose.Words.SaveFormat.Png);

Question:
0.在.net core 2.0 Environment has this question
1.doc to pdf :document image all lost,document content normal;
2. doc to png :Application execption
测试文档
test.zip (689.3 KB)

@guoxuefeng

Thanks for your inquiry. Could you please share the problematic output PDF and exception detail that you are facing while converting DOC to PNG? We will investigate the issue and provide you more information about your query.

this picutre is docx to pdf
批注 2018-12-27 033126.jpg (155.6 KB)

this execption is doc to png:

Unhandled Exception: System.TypeInitializationException: The type initializer for   ' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
   at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
   at SkiaSharp.SKImageInfo..cctor()
   --- End of inner exception stack trace ---
   at SkiaSharp.SKBitmap..ctor(Int32 width, Int32 height, Boolean isOpaque)
   at  ..cctor()
   --- End of inner exception stack trace ---
   at    .()
   at    .(Stream )
   at        (    )
   at    .     (    )
   at Aspose.Words.Document.(    , SaveOptions )
   at Aspose.Words.Document.(Stream , String , SaveOptions )
   at ConsoleApp2.Program.Main(String[] args) in C:\Users\Administrator\source\repos\ConsoleApp2\ConsoleApp2\Program.cs:line 32

已放弃

@guoxuefeng

Thanks for sharing the detail. You are facing this issue due to missing of libSkiaSharp DLL. Please install Aspose.Words for .NET through NuGet. Hope this helps you.

If you still face problem, please install Microsoft Visual C++ x64 Redistributable package 2017 on your system to resolve this issue. Please let us know if you have any more queries.

Hello,aspose.words is not problem Running in Windows ,but it have above problem Running in Linux(Ubuntu or Centos same).
The following two pictures are my deploy package
q1.jpg (54.5 KB)
q2.jpg (32.3 KB)

@guoxuefeng

Thanks for your inquiry. This is kind of limitation of SkiaSharp that is used by Aspose.Words .NET Standard version. Please install Aspose.Words for .NET through NuGet. This will fix the shared issue.

A post was split to a new topic: SkiaSharp issue using docker