原創(chuàng)|產(chǎn)品更新|編輯:黃竹雯|2019-04-08 13:06:19.000|閱讀 414 次
概述:Word功能開發(fā)控件 Aspose.Words for .NET更新至19.4,添加將邊框添加到DML形狀等新功能,修復(fù)多個(gè)bug。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words無需Microsoft Word 也可在任何平臺上滿足Word文檔的一切操作需求。2019年4月Aspose.Words發(fā)布v19.4,以下是v19.4更新說明:
key | 概述 | 類別 |
---|---|---|
WORDSNET-14095 | 將邊框添加到DML形狀 | 新功能 |
WORDSNET-18027 | DOCX導(dǎo)出到PDF - 打印文本中字符之間的間隙可調(diào) | 新功能 |
WORDSNET-17996 | 提供API以更改文本在文本框中垂直對齊的方式 | 新功能 |
WORDSNET-17534 | NodeImporter. ListFormat未導(dǎo)入 | bug修復(fù) |
WORDSNET-18107 | 將DOCX保存為PDF時(shí),Document.Save方法不停止 | bug修復(fù) |
WORDSNET-9890 | 標(biāo)題中帶有垂直文本的TextBox不會保留在PDF中 | bug修復(fù) |
WORDSNET-15523 | 將.docx轉(zhuǎn)換為.pdf時(shí)圖像丟失 | bug修復(fù) |
WORDSNET-17951 | 在DOCX-> HTML-> DOCX轉(zhuǎn)換后,不保留空段落的字體格式 | bug修復(fù) |
WORDSNET-18189 | DocumentBuilder.insertHtml在換行前插入額外的空格 | bug修復(fù) |
WORDSNET-18231 | 加載DOC時(shí)拋出Aspose.Words.FileCorruptedException | bug修復(fù) |
WORDSNET-18296 | 將DOC轉(zhuǎn)換為PDF時(shí)發(fā)生System.NullReferenceException | bug修復(fù) |
WORDSNET-17894 | 不保存具有絕對路徑但沒有格式的圖像 | bug修復(fù) |
WORDSNET-18363 | 在某些情況下,評論的內(nèi)容無法突出顯示 | bug修復(fù) |
WORDSNET-18263 | 將DOCX保存為HTML / PDF時(shí)拋出System.IndexOutOfRangeException | bug修復(fù) |
WORDSNET-17821 | 轉(zhuǎn)換為PDF后,第二個(gè)垂直軸的縮放比例不正確 | bug修復(fù) |
... | ... | ... |
相關(guān)問題:WORDSNET-14397現(xiàn)已解決。
添加了一個(gè)新的ImportFormatOptions類,只有一個(gè)公共屬性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 }
當(dāng)導(dǎo)入樣式發(fā)生沖突時(shí),此選項(xiàng)開始工作。
啟用此選項(xiàng)后,如果使用KeepSourceFormatting導(dǎo)入模式,源樣式將擴(kuò)展為目標(biāo)文檔中的直接屬性。
禁用此選項(xiàng)后,只有在編號時(shí)才會展開源樣式。不會覆蓋現(xiàn)有目標(biāo)屬性,包括列表。
此選項(xiàng)暫時(shí)只能用于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);
相關(guān)問題:WORDSNET-18027現(xiàn)已解決。
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; } }
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)