原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2020-01-07 11:19:03.430|閱讀 295 次
概述:很高興與大家分享Java平臺的Aspose.Words迎來了2020新年第一次更新,該版本具有.NET版同樣的5大新功能體驗,同時還獨具3大新功能,包括從PostgreSQL BlobInputStream加載文檔、JavaDoc for WebExtensions以及渲染包含圖標和圖標標題的EMF文件。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words for Java是功能豐富的Word處理API,允許開發(fā)人員在不使用Microsoft Word的情況下嵌入在自己的Java應(yīng)用程序中生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔的功能。
很高興與大家分享Java平臺的Aspose.Words迎來了2020新年第一次更新,該版本具有.NET版同樣的5大新功能體驗,同時還獨具3大新功能,包括從PostgreSQL BlobInputStream加載文檔、JavaDoc for WebExtensions以及渲染包含圖標和圖標標題的EMF文件。接下來,我們一起來聊聊新版本的新功能。
key | 概述 | 類別 |
---|---|---|
WORDJAVA-2248 | 研究從PostgreSQL BlobInputStream加載文檔。 | 新功能 |
WORDJAVA-2280 | JavaDoc for WebExtensions | 新功能 |
WORDJAVA-2286 | 渲染包含圖標和圖標標題的EMF文件。 | 新功能 |
WORDSNET-12444 | 支持API檢查VBAcode是否已簽名 | 新功能 |
WORDSNET-12204 | 添加功能以設(shè)置/獲取浮動表的位置 | 新功能 |
WORDSNET-19648 | 使用LINQ Reporting Engine創(chuàng)建書簽 | 新功能 |
WORDSNET-11833 | 添加功能以在使用InsertOleObject時插入IconCaption | 新功能 |
WORDSNET-19366 | 在使用InsertOleObject時插入IconCaption的功能 | 新功能 |
WORDSNET-18818 | 使DML圖像渲染對具有損壞的SVG擴展名的圖像具有彈性 | 增強功能 |
WORDSNET-19498 | 內(nèi)容已推送到PDF的前一頁 | 增強功能 |
WORDSNET-11110 | 表格布局的DOC至PDF轉(zhuǎn)換問題 | 增強功能 |
完整更新細則請參考:【Aspose.Words for Java v20.1更新說明】
為以下表格屬性添加了設(shè)置器:RelativeHorizontalAlignment、AbsoluteHorizontalDistance、RelativeVerticalAlignment、AbsoluteVerticalDistance。這些屬性允許設(shè)置浮動表的位置。
用例:
Document doc = new Document("some doc"); Table table = document.FirstSection.Body.Tables\[0\]; table.AbsoluteHorizontalDistance = 10; // sets absolute table horizontal position at 10pt. table.RelativeVerticalAlignment = VerticalAlignment.Center; // sets vertical table position to center of entity specified by Table.VerticalAnchor.
新的公共方法已添加到DocumentBuilder類中:
/// <summary> /// Inserts an embedded or linked OLE object as icon into the document. /// Allows to specify icon file and caption. Detects OLE object type using file extension. /// </summary> /// <param name="fileName">Full path to the file.</param> /// <param name="isLinked"> /// If true then linked OLE object is inserted otherwise embedded OLE object is inserted. /// </param> /// <param name="iconFile"> /// Full path to the ICO file. /// If the value is null or the ICO file is not readable, Aspose.Words will use a predefined image. /// </param> /// <param name="iconCaption">Icon caption.</param> /// <returns>Shape node containing Ole object and inserted at the current Builder position.</returns> publicShape InsertOleObjectAsIcon(stringfileName,boolisLinked,stringiconFile,stringiconCaption)
用例。說明如何將嵌入式或鏈接的OLE對象作為圖標插入文檔:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Shape shape = builder.InsertOleObjectAsIcon("C:\\embedded.xlsx", false, "C:\\icon.ico", "My embedded file"); doc.Save("C:\\output.docx");還想要更多嗎?您可以點擊閱讀【2019 · Aspose最新資源整合】,查找需要的教程資源。如果您有任何疑問或需求,請隨時,我們很高興為您提供查詢和咨詢。
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn