下載鏈接:https://download.csdn.net/download/wylcy/10574216
主要是用於轉word轉html,測試代碼如下:
string docpath = @"E:\Files\1.doc"; string htmlpath = @"E:\Files\1\1.html"; Aspose.Words.Document docDocument = new Aspose.Words.Document(docpath,new Aspose.Words.LoadOptions(Aspose.Words.LoadFormat.Doc,null,null) ); var option = new Aspose.Words.Saving.HtmlSaveOptions(Aspose.Words.SaveFormat.Html) { ScaleImageToShapeSize = true, UseHighQualityRendering = true, ImageResolution = 600 }; docDocument.Save(htmlpath, option);
測試結論:試用多個破解版本,只有這個在.net core下可以運行成功,但是還是有一些問題:
1.轉html時,word中公式轉成的圖片都變成了黑色塊,但是word中普通的jpeg圖片可以正常顯示。使用官方的試用版也同樣有這個問題,這個問題應該是aspose.word本身對圖片處理有問題;
2.轉html時,耗時特別的長,沒有去排查是什么原因