原創|產品更新|編輯:黃竹雯|2019-04-08 13:06:19.000|閱讀 414 次
概述:Word功能開發控件 Aspose.Words for .NET更新至19.4,添加將邊框添加到DML形狀等新功能,修復多個bug。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words無需Microsoft Word 也可在任何平臺上滿足Word文檔的一切操作需求。2019年4月Aspose.Words發布v19.4,以下是v19.4更新說明:
key | 概述 | 類別 |
---|---|---|
WORDSNET-14095 | 將邊框添加到DML形狀 | 新功能 |
WORDSNET-18027 | DOCX導出到PDF - 打印文本中字符之間的間隙可調 | 新功能 |
WORDSNET-17996 | 提供API以更改文本在文本框中垂直對齊的方式 | 新功能 |
WORDSNET-17534 | NodeImporter. ListFormat未導入 | bug修復 |
WORDSNET-18107 | 將DOCX保存為PDF時,Document.Save方法不停止 | bug修復 |
WORDSNET-9890 | 標題中帶有垂直文本的TextBox不會保留在PDF中 | bug修復 |
WORDSNET-15523 | 將.docx轉換為.pdf時圖像丟失 | bug修復 |
WORDSNET-17951 | 在DOCX-> HTML-> DOCX轉換后,不保留空段落的字體格式 | bug修復 |
WORDSNET-18189 | DocumentBuilder.insertHtml在換行前插入額外的空格 | bug修復 |
WORDSNET-18231 | 加載DOC時拋出Aspose.Words.FileCorruptedException | bug修復 |
WORDSNET-18296 | 將DOC轉換為PDF時發生System.NullReferenceException | bug修復 |
WORDSNET-17894 | 不保存具有絕對路徑但沒有格式的圖像 | bug修復 |
WORDSNET-18363 | 在某些情況下,評論的內容無法突出顯示 | bug修復 |
WORDSNET-18263 | 將DOCX保存為HTML / PDF時拋出System.IndexOutOfRangeException | bug修復 |
WORDSNET-17821 | 轉換為PDF后,第二個垂直軸的縮放比例不正確 | bug修復 |
... | ... | ... |
相關問題:WORDSNET-14397現已解決。
添加了一個新的ImportFormatOptions類,只有一個公共屬性SmartStyleBehavior:
/// <summary> /// Allows to specify various import options to format output. /// </summary> public class ImportFormatOptions { /// <summary> /// Smart style behavior. /// Default value is <c>false</c>. /// </summary> public bool SmartStyleBehavior }
當導入樣式發生沖突時,此選項開始工作。
啟用此選項后,如果使用KeepSourceFormatting導入模式,源樣式將擴展為目標文檔中的直接屬性。
禁用此選項后,只有在編號時才會展開源樣式。不會覆蓋現有目標屬性,包括列表。
此選項暫時只能用于DocumentBuilder類的新公共方法:
/// <summary> /// Inserts a document at the cursor position. /// </summary> public Node InsertDocument(Document srcDoc, ImportFormatMode importFormatMode, ImportFormatOptions options)
用例:
Document srcDoc = new Document("source.docx"); Document dstDoc = new Document("destination.docx"); DocumentBuilder builder = new DocumentBuilder(dstDoc); builder.MoveToDocumentEnd(); builder.InsertBreak(BreakType.PageBreak); ImportFormatOptions options = new ImportFormatOptions(); options.SmartStyleBehavior = true; builder.InsertDocument(srcDoc, ImportFormatMode.UseDestinationStyles, options);
相關問題:WORDSNET-18027現已解決。
PdfSaveOptions類中添加了以下新屬性:
/// <summary> /// A flag specifying whether to write additional text positioning operators or not. /// </summary> /// <remarks> /// <para> /// If <c>true</c>, additional text positioning operators are written to the output PDF. This may help to overcome /// issues with inaccurate text positioning with some printers. The downside is the increased PDF document size. /// </para> /// <para>The default value is <c>false</c>.</para> /// </remarks> public bool AdditionalTextPositioning { get { return mAdditionalTextPositioning; } set { mAdditionalTextPositioning = value; } }
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網