原創|產品更新|編輯:李顯亮|2019-09-16 10:28:19.583|閱讀 261 次
概述:Aspose.Words for Java更新至新版本v19.9,新增基于HarfBuzz整形器的高級排版以及簡化Java上的XML數據源使用,添加對Truncate字體高度兼容性選項的支持,修復多項Bug,我們一起來看一看新功能詳解吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words for Java是功能豐富的Word處理API,允許開發人員在不使用Microsoft Word的情況下嵌入在自己的Java應用程序中生成,修改,轉換,呈現和打印文檔的功能。同時還提供訪問和操作所有文檔元素的格式屬性,高質量轉換為多種格式,將單個頁面或完整文檔呈現為不同文件格式,使用來自各種數據源或業務對象的數據生成報告等功能。
Aspose.Words for Java更新至新版本v19.9,新增基于HarfBuzz整形器的高級排版以及簡化Java上的XML數據源使用,添加對Truncate字體高度兼容性選項的支持,修復多項Bug,我們一起來看一看新功能詳解吧!>>歡迎下載Aspose.Words for Java v19.9體驗
完整更新細則請參考:【Aspose.Words for Java v19.9更新說明】
新版本可以創建重復節的結構化文檔標記節點和重復節項類型。新項目也已添加到SdtType枚舉類型中:
public enum SdtType { … ////// The SDT represents repeating section item. ///////// This is MS-specific feature available since Office 2013 and not supported by the ISO/IEC 29500 OOXML standard. ///RepeatingSectionItem, … }
用例創建映射到自定義XML部分的表重復節:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); CustomXmlPart xmlPart = doc.CustomXmlParts.Add("Books", "Everyday ItalianGiada De Laurentiis" + "Harry PotterJ K. Rowling" + "Learning XMLErik T. Ray"); Table table = builder.StartTable(); builder.InsertCell(); builder.Write("Title"); builder.InsertCell(); builder.Write("Author"); builder.EndRow(); builder.EndTable(); StructuredDocumentTag repeatingSectionSdt = new StructuredDocumentTag(doc, SdtType.RepeatingSection, MarkupLevel.Row); repeatingSectionSdt.XmlMapping.SetMapping(xmlPart, "/books[1]/book", ""); table.AppendChild(repeatingSectionSdt); StructuredDocumentTag repeatingSectionItemSdt = new StructuredDocumentTag(doc, SdtType.RepeatingSectionItem, MarkupLevel.Row); repeatingSectionSdt.AppendChild(repeatingSectionItemSdt); Row row = new Row(doc); repeatingSectionItemSdt.AppendChild(row); StructuredDocumentTag titleSdt = new StructuredDocumentTag(doc, SdtType.PlainText, MarkupLevel.Cell); titleSdt.XmlMapping.SetMapping(xmlPart, "/books[1]/book[1]/title[1]", ""); row.AppendChild(titleSdt); StructuredDocumentTag authorSdt = new StructuredDocumentTag(doc, SdtType.PlainText, MarkupLevel.Cell); authorSdt.XmlMapping.SetMapping(xmlPart, "/books[1]/book[1]/author[1]", ""); row.AppendChild(authorSdt); doc.Save(dir + "Document.docx");
*悅滿中秋 · 購享好禮,現在購買Aspose系列產品即可領取精美禮品喲,更多活動詳情可了解哦~
ASPOSE技術交流QQ群(642018183)已開通,各類資源及時分享,歡迎交流討論!
掃描關注“慧聚IT”微信公眾號,及時獲取更多產品最新動態及最新資訊
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn