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)