原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-08-13 10:44:21.733|閱讀 372 次
概述:Aspose.Words for .Net更新至新版本v19.8,新增分析在docker(Linux)中使用圖像轉(zhuǎn)換文檔所需的內(nèi)容功能,以及渲染/轉(zhuǎn)換為PDF時忽略字距調(diào)整選項,修復(fù)多項Bug,我們一起來看一看新功能詳解吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Words for .NET是用于執(zhí)行各種文檔管理和操作任務(wù),支持生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔,而無需在跨平臺應(yīng)用程序中直接使用Microsoft Word。同時支持所有流行的Word處理文件格式,并允許將Word文檔導(dǎo)出或轉(zhuǎn)換為固定布局文件格式和最常用的圖像、多媒體格式。
Aspose.Words for .Net更新至新版本v19.8,新增分析在docker(Linux)中使用圖像轉(zhuǎn)換文檔所需的內(nèi)容功能,以及渲染/轉(zhuǎn)換為PDF時忽略字距調(diào)整選項,修復(fù)多項Bug,我們一起來看一看新功能詳解吧!>>歡迎下載Aspose.Words for .NET v19.8體驗
key | 概述 | 類別 |
---|---|---|
WORDSNET-18808 | 分析在docker(Linux)中使用圖像轉(zhuǎn)換文檔所需的內(nèi)容 | 新功能 |
WORDSNET-2261 | 渲染/轉(zhuǎn)換為PDF時忽略字距調(diào)整選項 | 新功能 |
WORDSNET-18864 | Iskoola Pota和Latha字體渲染問題 | Bug修復(fù) |
WORDSNET-18561 | 輸出PDF中缺少圖表的軸 | Bug修復(fù) |
WORDSNET-18691 | 在word文檔中存在格式化問題,在將政策寫入轉(zhuǎn)換為pdf后,文本變?yōu)榇煮w | Bug修復(fù) |
WORDSNET-18875 | 插入標(biāo)題時文檔格式已更改 | Bug修復(fù) |
WORDSNET-18510 | 使用公式呈現(xiàn)的DOCX到HTML轉(zhuǎn)換問題 | Bug修復(fù) |
WORDSNET-18511 | 具有分頁位置的DOCX到HTML轉(zhuǎn)換問題 | Bug修復(fù) |
WORDSNET-18513 | 將DOCX轉(zhuǎn)換為PDF時無限循環(huán)異常 | Bug修復(fù) |
WORDSNET-18895 | 導(dǎo)出為HTML后,段落的格式不正確 | Bug修復(fù) |
WORDSNET-18894 | 導(dǎo)出為HTML后,段落的格式不正確 | Bug修復(fù) |
· · · · · ·
完整更新細(xì)則請參考:【Aspose.Words for .NET v19.8更新說明】
添加了新的公開枚舉:
////// Allows to specify whether to work with the original or revised version of a document. ///public enum RevisionsView
在Document類中添加了新的公共選項:
////// Gets or sets a value indicating whether to work with the original or revised version of a document. ///////// The default value is . ///public RevisionsView RevisionsView
如何訪問文檔的修訂版本:
Document doc = new Document(@"test.docx"); doc.UpdateListLabels(); // Switch to the revised version of the document. doc.RevisionsView = RevisionsView.Final; foreach (Revision revision in doc.Revisions) { if (revision.ParentNode.NodeType == NodeType.Paragraph) { Paragraph paragraph = (Paragraph)revision.ParentNode; if (paragraph.IsListItem) { // Print revised version of LabelString and ListLevel. Console.WriteLine(paragraph.ListLabel.LabelString); Console.WriteLine(paragraph.ListFormat.ListLevel); } } }
ChartDataLabelCollection類中添加了以下新公共屬性:
////// Allows to specify whether category name is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowCategoryName { get; set; } ////// Allows to specify whether bubble size is to be displayed for the data labels of the entire series. /// Applies only to Bubble charts. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowBubbleSize { get; set; } ////// Allows to specify whether legend key is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowLegendKey { get; set; } ////// Allows to specify whether percentage value is to be displayed for the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowPercentage { get; set; } ////// Returns or sets a Boolean to indicate the series name display behavior for the data labels of the entire series. /// True to show the series name. False to hide. By default false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowSeriesName { get; set; } ////// Allows to specify whether values are to be displayed in the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowValue { get; set; } ////// Allows to specify whether data label leader lines need be shown for the data labels of the entire series. /// Default value is false. /////////Applies to Pie charts only. /// Leader lines create a visual connection between a data label and its corresponding data point.///Value defined for this property can be overridden for an individual data label with using the ///property.///public bool ShowLeaderLines { get; set; } ////// Allows to specify whether values from data labels range to be displayed in the data labels of the entire series. /// Default value is false. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public bool ShowDataLabelsRange { get; set; } ////// Gets or sets string separator used for the data labels of the entire series. /// The default is a comma, except for pie charts showing only category name and percentage, when a line break /// shall be used instead. ///////// Value defined for this property can be overridden for an individual data label with using the ///property. ///public string Separator { get; set; } ////// Gets aninstance allowing to set number format for the data labels of the /// entire series. ///public ChartNumberFormat NumberFormat { get; set; }
使用案例:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); Shape shape = builder.InsertChart(ChartType.Pie, 432, 252); Chart chart = shape.Chart; chart.Series.Clear(); ChartSeries series = chart.Series.Add("Series 1", new string[] { "Category1", "Category2", "Category3" }, new double[] { 2.7, 3.2, 0.8 }); ChartDataLabelCollection labels = series.DataLabels; labels.ShowPercentage = true; labels.ShowValue = true; labels.ShowLeaderLines = false; labels.Separator = " - "; doc.Save(dir + "Demo.docx");
*Aspose.Words現(xiàn)已加入“8月省錢式嗨購”,滿額即送office 365正版授權(quán),想要購買Aspose.Words正版授權(quán)的朋友可了解詳情哦~
ASPOSE技術(shù)交流QQ群(642018183)已開通,各類資源及時分享,歡迎交流討論!
掃描關(guān)注“慧聚IT”微信公眾號,及時獲取更多產(chǎn)品最新動態(tài)及最新資訊
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn