原創|產品更新|編輯:黃竹雯|2019-02-11 09:54:31.000|閱讀 332 次
概述:Word功能開發控件Aspose.Words for .Net更新至19.2。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words無需Microsoft Word 也可在任何平臺上滿足Word文檔的一切操作需求。2019年2月Aspose.Words發布v19.2,以下是v19.2更新說明:
核心 | 概述 | 類別 |
WORDSNET-14532 | 改進字體替換API | 新增功能 |
WORDSNET-16111 | LINQ報告中的錯誤處理 | 新增功能 |
WORDSNET-15203 | 當LINQ報告語法不正確時,添加更多有用的異常消息 | 新增功能 |
WORDSNET-17047 | ActiveX控件渲染//保存為PDF時,單選按鈕呈鋸齒狀 | 增強 |
WORDSNET-17725 | 從HTML導入后,Border的寬度為零 | 增強 |
WORDSNET-11331 | 從DOCX轉換為DOC/PDF出現空行 | 增強 |
WORDSNET-17405 | 文本將呈現到下一頁 | 增強 |
WORDSNET-14851 | PDF中的布局與WORD文檔中的布局不同 | 增強 |
WORDSNET-15008 | 表格內容與頁腳重疊,不會轉到PDF格式的下一頁 | 增強 |
WORDSNET-16413 | 內容控件在輸出PDF中顯示在下一個 | 增強 |
WORDSNET-17532 | 單元格中斷包含在下一頁 | 增強 |
WORDSNET-13756 | 為ReportingEngine.BuildReport拋出有意義的異常 | 增強 |
WORDSNET-17950 | 從Aspose.Words.Tests中提取常用測試代碼 | 增強 |
WORDSNET-17809 | ReportingEngine.buildReport拋出java.lang.IllegalStateException | 增強 |
WORDSNET-17404 | 內容將下推到輸出PDF中的下一頁 | 增強 |
WORDSNET-18018 | DOC / X到PDF - 消耗大量內存并占用太多時間 | 性能 |
WORDSNET-17911 | 加載大ODT文件會占用太多時間 | 性能 |
... | ... | ... |
這里列出了Aspose.Words 19.2中引入的公共API更改。它不僅包括新的和過時的公共方法,還包括對Aspose.Words中幕后行為的任何變化的描述,這可能會影響現有代碼。引入的任何行為都可以被可能修改現有行為,這一點尤為重要,并在此處進行了說明。
WORDSNET-17338已經被解決
以前有一個通用警告文本“不支持的圖像格式”。現在有一個針對OutOfMemoryException的特定警告,文本“沒有足夠的內存來加載圖像”。以及帶有文字的通用警告“無法處理圖像。可能不支持的圖像格式”。
WORDSNET-14532現已解決:
字體提取和替換機制已更改
以前的字體提取過程是:
現在字體提取過程是:
public class FontSettings { ////// Settings related to font substitution mechanism. /// public FontSubstitutionSettings SubstitutionSettings { get; } [Obsolete("This property is obsolete. Please use SubstitutionSettings.DefaultFontSubstitution instead.")] public string DefaultFontName { get; set; } [Obsolete("This property is obsolete. Please use SubstitutionSettings.FontInfoSubstitution instead.")] public bool EnableFontSubstitution { get; set; } [Obsolete("This method is obsolete. Please use SubstitutionSettings.TableSubstitution instead.")] public string[] GetFontSubstitutes(string originalFontName); [Obsolete("This method is obsolete. Please use SubstitutionSettings.TableSubstitution instead.")] public void SetFontSubstitutes(string originalFontName, params string[] substituteFontNames); [Obsolete("This method is obsolete. Please use SubstitutionSettings.TableSubstitution instead.")] public void AddFontSubstitutes(string originalFontName, params string[] substituteFontNames); } ////// Specifies font substitution mechanism settings. /// ////// public class FontSubstitutionSettings { ////// Font substitution process consists of several rules which are checked one by one in specific order. /// If the first rule can't resolve the font then second rule is checked and so on. ///The order of the rules is following: /// 1. Font config substitution rule (disabled by default) /// 2. Table substitution rule (enabled by default) /// 3. Font info substitution rule (enabled by default) /// 4. Default font rule (enabled by default) /// ////// Note that font info substitution rule will always resolve the font if ///is available /// and will override the default font rule. If you want to use the default font rule then you should disable the /// font info substitution rule. /// /// Note that font config substitution rule will resolve the font in most cases and thus overrides all other rules. /// ////// Settings related to table substitution rule. /// public TableSubstitutionRule TableSubstitution { get; } ////// Settings related to font info substitution rule. /// public FontInfoSubstitutionRule FontInfoSubstitution { get; } ////// Settings related to default font substitution rule. /// public DefaultFontSubstitutionRule DefaultFontSubstitution { get; } ////// Settings related to font config substitution rule. /// public FontConfigSubstitutionRule FontConfigSubstitution { get; } } ////// This is an abstract base class for the font substitution rule. /// public abstract class FontSubstitutionRule { ////// Specifies whether the rule is enabled or not. /// public bool Enabled { get; set; } } ////// Font config substitution rule. /// ////// public class FontConfigSubstitutionRule : FontSubstitutionRule { ////// This rule uses fontconfig utility on Linux (and other Unix-like) platforms to get the substitution /// if the original font is not available. /// ////// If fontconfig utility is not available then this rule will be ignored. /// ////// Check if fontconfig utility is available or not. /// public bool IsFontConfigAvailable(); ////// Resets the cache of fontconfig calling results. /// public void ResetCache(); } ////// Table font substitution rule. /// ////// This rule defines the list of substitute font names to be used if the original font is not available. /// Substitutes will be checked for the font name and the public class TableSubstitutionRule : FontSubstitutionRule { ///(if any). /// /// Loads table substitution settings from XML file. /// /// Input file name. public void Load(string fileName); ////// Loads table substitution settings from XML stream. /// /// Input stream. public void Load(Stream stream); ////// Loads predefined table substitution settings for Windows platform. /// public void LoadWindowsSettings(); ////// Loads predefined table substitution settings for Linux platform. /// public void LoadLinuxSettings(); ////// Saves the current table substitution settings to file. /// /// Output file name. public void Save(string fileName); ////// Saves the current table substitution settings to stream. /// /// Output stream. public void Save(Stream outputStream); ////// Returns array containing substitute font names for the specified original font name. /// /// Original font name. ///List of alternative font names. public IEnumerableGetSubstitutes(string originalFontName); /// /// Override substitute font names for given original font name. /// /// Original font name. /// List of alternative font names. public void SetSubstitutes(string originalFontName, IEnumerablesubstituteFontNames); /// /// Override substitute font names for given original font name. /// /// Original font name. /// List of alternative font names. public void SetSubstitutes(string originalFontName, params string[] substituteFontNames); ////// Adds substitute font names for given original font name. /// /// Original font name. /// List of alternative font names. public void AddSubstitutes(string originalFontName, IEnumerablesubstituteFontNames); /// /// Adds substitute font names for given original font name. /// /// Original font name. /// List of alternative font names. public void AddSubstitutes(string originalFontName, params string[] substituteFontNames); } ////// Font info substitution rule. /// ////// According to this rule Aspose.Words evaluates all the related fields in public class FontInfoSubstitutionRule : FontSubstitutionRule { } ///(Panose, Sig etc) for /// the missing font and finds the closest match among the available font sources. If is not /// available for the missing font then nothing will be done. /// /// Default font substitution rule. /// ////// This rule defines single default font name to be used for substitution if the original font is not available. /// public class DefaultFontSubstitutionRule : FontSubstitutionRule { ////// Gets or sets the default font name. /// ////// public string DefaultFontName { get; set; } }The default value is 'Times New Roman'. ///
問題:WORDSNET-17560
刪除已棄用的公共屬性TxtSaveOptions.ExportHeadersFooters:
// Specifies whether to output headers and footers when exporting in plain text format. // Default value is true. public bool ExportHeadersFooters
請改用TxtSaveOptions.ExportHeadersFootersMode屬性。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網