Aspose.Words for Java是功能豐富的Word處理API,允許開發人員在不使用Microsoft Word的情況下嵌入在自己的Java應用程序中生成,修改,轉換,呈現和打印文檔的功能。
很高興與大家分享Java平臺的Aspose.Words迎來了2020.4月更新,該版本具有.NET版同樣的7大新升級體驗,包括日志記錄系統已更新和改進,圖表數據標簽和系列的擴展API等等。接下來,我們一起來聊聊新版本的新功能。
主要特點
-
Java平臺現在支持OpenGL渲染(使用外部庫)。
-
日志記錄系統已更新和改進。
-
Sonarqube測試通過。
-
提供了更改亞洲段落間距和縮進的功能。
-
為PDF渲染添加了圖像插值選項(新的公共屬性PdfSaveOptions.InterpolateImages)。
-
添加了新的模式3D形狀渲染。
-
圖表數據標簽和系列的擴展API。
具體更新內容
key
|
概述
|
類別
|
WORDSJava-2264
|
使用外部庫自動移植OpenGL渲染。
|
新功能
|
WORDSNET-15697
|
提供更改受密碼保護的VBA代碼(更改字符串)的功能
|
新功能
|
WORDSNET-20043
|
公布公開的CompareLevel(粒度)選項
|
新功能
|
WORDSNET-20001
|
提供API以獲取針對中文特定段落格式的設置Word
|
新功能
|
WORDSNET-19913
|
Range.Replace替換
|
新功能
|
WORDSNET-19996
|
添加用于PDF渲染的圖像插值選項
|
新功能
|
WORDSNET-19873
|
添加功能以設置/獲取浮動表的位置(HorizontalAnchor和VerticalAnchor)
|
新功能
|
WORDSNET-20080
|
支持帶有復合重音符號的OTF(CFF)字體子集
|
新功能
|
WORDSNET-20146
|
實施ISO 29500特定BorderArt樣式的渲染
|
新功能
|
WORDSNET-19747
|
添加功能以設置/獲取段落屬性“定義文檔網格時對齊網格”
|
新功能
|
WORDSNET-10548
|
錨固件靠近緊緊包裹的浮子時,浮子位置不正確
|
增強功能
|
WORDSNET-20042
|
檢查RTF格式是否支持在塊/單元/行級別放置注釋
|
增強功能
|
WORDSJAVA-2300
|
無法從StreamFontSource繼承類
|
Bug修復
|
WORDSJAVA-2309
|
Tomcat上Java Advanced Imaging警告的日志記錄級別
|
Bug修復
|
WORDSJAVA-2332
|
檢查Aspose.Words for Java代碼中的幾個漏洞
|
Bug修復
|
WORDSJAVA-2338
|
許可證類包含setLicenseInternal(zz49 licenseStream)
|
Bug修復
|
WORDSJAVA-2340
|
具有InputStream arg而不是OutputStream的TableSubstitutionRule.save()方法
|
Bug修復
|
WORDSJAVA-2342
|
將PageSavingArgs類中的setPageStream(InputStream)更改為setPageStream(OutputStream)
|
Bug修復
|
WORDSJAVA-2345
|
在具有接近零高度的元數據參數的位圖上,轉換為PDF失敗。
|
Bug修復
|
WORDSJAVA-2353
|
帶有瘋狂的長轉義字符串的MHTML在轉換為PDF時導致StackOverflowError
|
Bug修復
|
WORDSJAVA-2361
|
修復Sonarqube的CWE-259和CWE-489。
|
Bug修復
|
WORDSJAVA-2367
|
OpenGL在不同的PC上渲染具有像素差異的圖像。
|
Bug修復
|
WORDSJAVA-2369
|
無法加載帶有PRC編碼的中文名稱的字體。
|
Bug修復
|
WORDSJAVA-2368
|
一些測試在TestJsonDataSourceCore中失敗
|
Bug修復
|
增加了更改亞洲段落間距和縮進的功能
添加了以下ParagraphFormat屬性:
/// <summary>
/// Gets or sets the left indent value (in characters) for the specified paragraphs.
/// </summary>
publicintParagraphFormat.CharacterUnitLeftIndent {get;set; }
/// <summary>
/// Gets or sets the right indent value (in characters) for the specified paragraphs.
/// </summary>
publicintParagraphFormat.CharacterUnitRightIndent {get;set; }
/// <summary>
/// Gets or sets the value (in characters) for the first-line or hanging indent.
/// <p>Use positive values to set the first-line indent, and negative values to set the hanging indent.</p>
/// </summary>
publicintParagraphFormat.CharacterUnitFirstLineIndent {get;set; }
/// <summary>
/// Gets or sets the amount of spacing (in gridlines) before the paragraphs.
/// </summary>
publicintParagraphFormat.LineUnitBefore {get;set; }
/// <summary>
/// Gets or sets the amount of spacing (in gridlines) after the paragraphs.
/// </summary>
publicintParagraphFormat.LineUnitAfter {get;set; }
添加了新模式的3D形狀渲染
添加了新的公共屬性SaveOptions.Dml3DEffectsRenderingMode :
/// <summary>
/// Gets or sets a value determining how 3D effects are rendered.
/// </summary>
/// <remarks>
/// The default value is <see cref="Saving.Dml3DEffectsRenderingMode.Basic"/>.
/// </remarks>
publicDml3DEffectsRenderingMode Dml3DEffectsRenderingMode
{
get{returnmDml3DEffectsRenderingMode; }
set{ mDml3DEffectsRenderingMode = value; }
/// <summary>
/// Specifies how 3D shape effects are rendered.
/// </summary>
publicenumDml3DEffectsRenderingMode
{
/// <summary>
/// A lightweight and stable rendering, based on the internal engine,
/// but advanced effects such as lighting, materials and other additional effects
/// are not displayed when using this mode.
/// Please see documentation for details.
/// </summary>
Basic,
/// <summary>
/// Rendering of an extended list of special effects including advanced 3D effects
/// such as bevels, lighting and materials.
/// </summary>
/// <remarks>
/// The current implementation uses OpenGL.
/// Please make sure that OpenGL library version 1.1 or higher is installed on your system before use.
/// This mode is still under development, and some things may not be supported, so it's recommended to use
/// the <see cref="Basic"/> mode if the rendering result is not acceptable.
/// Please see documentation for details.
/// </remarks>
Advanced
}
Aspose是目前國內外非常火爆且功能強大的文件格式敏捷開發控件,但因為產品眾多、技術問題復雜等因素,也常常遭受開發人員吐槽。如果您也正在使用Aspose相關產品,點擊下方按鈕,來談談Aspose的優劣,您的感受對我們相當寶貴哦~
標簽:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn