GroupDocs.Total for .NET 26.4 現已推出。此版本著重於整個套件的格式處理穩定性,修復了 Viewer、Conversion 與 Metadata 中 EPSF、DXF 與 MSG 檔案的渲染與轉換問題。

此版本的新功能

Issue Product Description
TOTALNET-341 Viewer 在渲染 DXF 檔案時出現 GroupDocs.Viewer.Exceptions.GroupDocsViewerException: 'CAD document rendering failed'
TOTALNET-350 Metadata 使用 GroupDocs.Metadata 開啟/儲存 MSG 檔案後,MSG 檔案屬性與傳輸訊息標頭會被更改。
TOTALNET-352 Conversion 某些 MSG 檔案在轉換為 PDF 時,特殊字元無法正確顯示。
TOTALNET-366 Viewer EPSF 格式支援受限 – 解析 EPSF 檔案內容時發生錯誤。
TOTALNET-367 Conversion 將 MSG 轉換為 PDF 時拋出 “No font was found” 例外。

TOTALNET-341 – Viewer
修正了在渲染 DXF 檔案時拋出訊息為 ‘CAD document rendering failed’GroupDocsViewerException

TOTALNET-350 – Metadata
Sender Email 屬性在使用 GroupDocs.Metadata 處理時不再被更改。以下程式碼示範了在開啟並儲存 MSG 檔案後,該屬性如何得以保留。

TOTALNET-352 – Conversion
先前在從 MSG 檔案產生的 PDF 中顯示為方框的特殊字元,現在已能正確呈現。

TOTALNET-366 – Viewer
實作了修正,將 EPSF 檔案中格式錯誤的 dash‑array 代碼 ([%d %d %d %d ] 0 d) 取代為有效的 dash array,消除因未關閉的陣列導致的解析錯誤。

TOTALNET-367 – Conversion
為 .NET Framework 應用程式提供指引,說明在缺少必要的 .NET Standard 程式集時,如何設定 binding redirects,以防止在 MSG 轉 PDF 的過程中出現 “No font was found” 例外。

程式碼範例

using (Metadata metadata = new Metadata("test.msg"))
{
    MsgRootPackage root = metadata.GetRootPackage<MsgRootPackage>();
    MsgPackage msg = root.EmailPackage;
    metadata.Save();
}
var loadOptions = new EmailLoadOptions
{
    ConvertOwned = false
};
var convertOptions = new PdfConvertOptions();

FluentConverter.Load("source.msg").WithOptions(loadOptions)
    .ConvertTo("converted.pdf")
    .WithOptions(convertOptions)
    .Convert();

如何取得更新

NuGet

直接下載

資源