原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-09-16 10:28:19.583|閱讀 269 次
概述:Aspose.Words for Java更新至新版本v19.9,新增基于HarfBuzz整形器的高級排版以及簡化Java上的XML數(shù)據(jù)源使用,添加對Truncate字體高度兼容性選項(xiàng)的支持,修復(fù)多項(xiàng)Bug,我們一起來看一看新功能詳解吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words for Java是功能豐富的Word處理API,允許開發(fā)人員在不使用Microsoft Word的情況下嵌入在自己的Java應(yīng)用程序中生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔的功能。同時還提供訪問和操作所有文檔元素的格式屬性,高質(zhì)量轉(zhuǎn)換為多種格式,將單個頁面或完整文檔呈現(xiàn)為不同文件格式,使用來自各種數(shù)據(jù)源或業(yè)務(wù)對象的數(shù)據(jù)生成報告等功能。
Aspose.Words for Java更新至新版本v19.9,新增基于HarfBuzz整形器的高級排版以及簡化Java上的XML數(shù)據(jù)源使用,添加對Truncate字體高度兼容性選項(xiàng)的支持,修復(fù)多項(xiàng)Bug,我們一起來看一看新功能詳解吧!>>歡迎下載Aspose.Words for Java v19.9體驗(yàn)
完整更新細(xì)則請參考:【Aspose.Words for Java v19.9更新說明】
新版本可以創(chuàng)建重復(fù)節(jié)的結(jié)構(gòu)化文檔標(biāo)記節(jié)點(diǎn)和重復(fù)節(jié)項(xiàng)類型。新項(xiàng)目也已添加到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, … }
用例創(chuàng)建映射到自定義XML部分的表重復(fù)節(jié):
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");
*悅滿中秋 · 購享好禮,現(xiàn)在購買Aspose系列產(chǎn)品即可領(lǐng)取精美禮品喲,更多活動詳情可了解哦~
ASPOSE技術(shù)交流QQ群(642018183)已開通,各類資源及時分享,歡迎交流討論!
掃描關(guān)注“慧聚IT”微信公眾號,及時獲取更多產(chǎn)品最新動態(tài)及最新資訊
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@ke049m.cn