原創|產品更新|編輯:李顯亮|2020-09-07 10:18:20.173|閱讀 426 次
概述:Aspose.Words for .Net更新至新版本v20.9,此常規的每月版本中有82項改進和修復,實現了對加載 PDF 文檔時腳注的支持,實現了元文件與EMF+容器的渲染,擴展了FormField字體格式化API,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
九月已來,.NET版Aspose.Words也為大家帶來了9月的新版本!Aspose.Words for .Net是一種高級Word文檔處理API,用于執行各種文檔管理和操作任務。API支持生成,修改,轉換,呈現和打印文檔,而無需在跨平臺應用程序中直接使用Microsoft Word。
主要特點如下:
>>你可以點擊這里下載Aspose.Words for .NET v20.9測試體驗
鍵 | 摘要 | 類別 |
WORDSNET-20589 | PDF到DOCX-腳注 | 新功能 |
WORDSNET522 | 允許整體上將字體格式應用于FormField | 新功能 |
WORDSNET-20289 | 通過Words-HTML-Words往返傳遞正確的邊框參數 | 新功能 |
WORDSNET-13678 | 提供一種從Word文檔中刪除模板引用的方法 | 新功能 |
WORDSNET-20986 | RTF轉換為DOCX后,“保留下一個”屬性被更改 | 增強功能 |
WORDSNET-19977 | Aspose.Words 20.2.0在Alpine Linux容器中不起作用 | 增強功能 |
WORDSNET-20868 | 加載RTF時出現UnsupportedFileFormatException | 增強功能 |
完整更新細則請參考:【Aspose.Words for .NET v20.9更新說明】
當前允許將字體格式整體應用于FormField。設置新的Font屬性后,它們將對整個FormField(包括字段值)生效。下述用例整體說明如何將字體格式應用于FormField:
Document doc = new Document("in.doc"); doc.Range.FormFields[0].Font.Size = 20; doc.Range.FormFields[0].Font.Color = Color.Red; doc.Save("out.doc");
實現了一個新的VbaReferenceCollection類:
實現了一個新的VbaReference類:
實現了一個新的公共枚舉VbaReferenceType:
在VbaProject類中添加了一個新的公共屬性:
用例。說明如何從VbaProject的引用集合中刪除一些引用:
public void Main() { Document doc = new Document("test.doc"); // Find and remove the reference with some LibId path. const string brokenPath = "brokenPath.dll"; VbaReferenceCollection references = doc.VbaProject.References; for (int i = references.Count - 1; i >= 0; i--) { VbaReference reference = doc.VbaProject.References[i]; string path = GetLibIdPath(reference); if (path == brokenPath) references.RemoveAt(i); } doc.Save("NoBrokenRef.doc"); } ////// Returns string representing LibId path of a specified reference. ///private static string GetLibIdPath(VbaReference reference) { switch (reference.Type) { case VbaReferenceType.Registered: case VbaReferenceType.Original: case VbaReferenceType.Control: return GetLibIdReferencePath(reference.LibId); case VbaReferenceType.Project: return GetLibIdProjectPath(reference.LibId); default: throw new ArgumentOutOfRangeException(); } } ////// Returns path from a specified identifier of an Automation type library. ///////// Please see details for the syntax at [MS-OVBA], 2.1.1.8 LibidReference. ///private static string GetLibIdReferencePath(string libIdReference) { if (libIdReference != null) { string[] refParts = libIdReference.Split('#'); if (refParts.Length > 3) return refParts[3]; } return ""; } ////// Returns path from a specified identifier of an Automation type library. ///////// Please see details for the syntax at [MS-OVBA], 2.1.1.12 ProjectReference. ///private static string GetLibIdProjectPath(string libIdProject) { return (libIdProject != null) ? libIdProject.Substring(3) : ""; }
還想要更多嗎?您可以點擊閱讀【2020 · Aspose最新資源整合】,查找需要的教程資源。如果您有任何疑問或需求,請隨時加入Aspose技術交流群(642018183),我們很高興為您提供查詢和咨詢。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn