原創(chuàng)|產(chǎn)品更新|編輯:張瑩心|2021-11-01 13:57:35.143|閱讀 820 次
概述:很高興地宣布 Spire.Office 6.10.3 的發(fā)布。此版本帶來了一些新功能,例如 Spire.XLS 支持 Waterfall、Pareto 和 Histogram 等多種新圖表;Spire.PDF 支持在將 PDF 轉(zhuǎn)換為 Doc/Docx 時(shí)設(shè)置文檔屬性;Spire.Presentation 支持獲取超鏈接的目標(biāo)幻燈片。同時(shí),成功修復(fù)了許多錯(cuò)誤。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Spire.License.dll v1.4.0
Spire.PDF
類別 | ID | 描述 |
新功能 | SPIREPDF-4564 |
支持在將 PDF 轉(zhuǎn)換為 Doc/Docx 時(shí)設(shè)置文檔屬性。 Spire.Pdf.Conversion.PdfToDocConverter doc = new Spire.Pdf.Conversion.PdfToDocConverter(inputFile); doc.DocxOptions.Title = "PDFTODOCX"; doc.DocxOptions.Subject = "Set document properties."; doc.DocxOptions.Tags = "Test Tags"; doc.DocxOptions.Categories = "PDF"; doc.DocxOptions.Commments = "This document just for testing the properties"; doc.DocxOptions.Authors = "TEST"; doc.DocxOptions.LastSavedBy = "/E-iceblue"; doc.DocxOptions.Revision = (int)7.9; doc.DocxOptions.Version = "csharp V4.0"; doc.DocxOptions.ProgramName = "Spire.Pdf for .NET"; doc.DocxOptions.Company = "E-iceblue"; doc.DocxOptions.Manager = "Test"; doc.SaveToDocx(outputFile); |
新功能 | SPIREPDF-4662 |
支持創(chuàng)建折線注釋。
PdfDocument pdf = new PdfDocument(); PdfPageBase page = pdf.Pages.Add(); PdfPolyLineAnnotation polyline = new PdfPolyLineAnnotation(page, new PointF[] { new PointF(0, 60), new PointF(30, 45), new PointF(60, 90), new PointF(90, 80) }); polyline.Color = Color.PaleVioletRed; polyline.Text = "This is a polygon annotation"; polyline.Author = "E-ICEBLUE"; polyline.Subject = "polygon annotation demo"; polyline.Name = "Summer"; polyline.Border = new PdfAnnotationBorder(1f); polyline.ModifiedDate = DateTime.Now; page.AnnotationsWidget.Add(polyline); pdf.SaveToFile(output); |
新功能 | SPIREPDF-914 |
支持提取表。
PdfDocument pdf = new PdfDocument(); pdf.LoadFromFile(inputPath); StringBuilder builder = new StringBuilder(); PdfTableExtractor extractor = new PdfTableExtractor(pdf); PdfTable[] tableLists = null; for (int pageIndex = 0; pageIndex 0) { foreach (PdfTable table in tableLists) { int row = table.GetRowCount(); int column = table.GetColumnCount(); for (int i = 0; i < row; i++) { for (int j = 0; j < column; j++) { string text = table.GetText(i, j); builder.Append(text + " "); } builder.Append("\r\n"); } } } } File.WriteAllText(outputFile, builder.ToString()); |
漏洞 | SPIREPDF-4085 | 修復(fù)查找特定文本失敗的問題。 |
漏洞 | SPIREPDF-4566 | 修復(fù)了添加SVG到PDF時(shí)內(nèi)容不正確的問題(.NET Core3.0平臺)。 |
漏洞 | SPIREPDF-4657 | 修復(fù)了應(yīng)用程序在打印 PDF 時(shí)拋出錯(cuò)誤“參數(shù)無效”的問題。 |
漏洞 | SPIREPDF-4664 | 修復(fù)PDF轉(zhuǎn)SVG時(shí)內(nèi)容不正確的問題。 |
漏洞 | SPIREPDF-4668 | 修復(fù)了添加和刪除圖層后文件大小增加的問題。 |
漏洞 | SPIREPDF-4689 | 修復(fù)打印PDF時(shí)內(nèi)容不正確的問題。 |
漏洞 | SPIREPDF-4692 | 修復(fù)PDF轉(zhuǎn)Excel時(shí)部分欄目隱藏,系統(tǒng)地域文化為葡萄牙語的問題。 |
漏洞 |
SPIREPDF-4693 SPIREPDF-4705 |
修復(fù)了應(yīng)用程序在填寫表單字段時(shí)拋出 NullReferenceException 的問題。 |
Spire.XLS
類別 | ID | 描述 |
新功能 | —— |
支持瀑布圖、帕累托圖、直方圖、BoxAndWhisker、TreeMap、SunBurst 和漏斗圖。
工作簿工作簿 = new Workbook(); workbook.LoadFromFile("waterfall_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為瀑布 officeChart.ChartType = ExcelChartType.WaterFall; //將工作表中的數(shù)據(jù)范圍設(shè)置為圖表 officeChart.DataRange = sheet["A2:B8"]; //數(shù)據(jù)點(diǎn)設(shè)置為圖表中的總數(shù) officeChart.Series[0].DataPoints[3].SetAsTotal = true; officeChart.Series[0].DataPoints[6].SetAsTotal = true; //顯示數(shù)據(jù)點(diǎn)之間的連接線 officeChart.Series[0].Format.ShowConnectorLines = true; //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Company Profit (in USD)"; //格式化數(shù)據(jù)標(biāo)簽和圖例選項(xiàng) officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.HasValue = true; officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.Size = 8; officeChart.Legend.Position = LegendPositionType.Right; workbook.SaveToFile("waterfall_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("Pareto_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為Pareto officeChart.ChartType = ExcelChartType.Pareto; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet["A2:B8"]; //將類別值設(shè)置為 bin 值 officeChart.PrimaryCategoryAxis.IsBinningByCategory = true; officeChart.PrimaryCategoryAxis.OverflowBinValue = 5; officeChart.PrimaryCategoryAxis.UnderflowBinValue = 1; //格式化帕累托線 officeChart.Series[0].ParetoLineFormat.LineProperties.Color = System.Drawing.Color.Blue; //間隙寬度設(shè)置 officeChart.Series[0].DataFormat.Options.GapWidth = 6; //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Expenses"; //隱藏圖例 officeChart.HasLegend = false; workbook.SaveToFile("Pareto_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("Histogram_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為直方圖 officeChart.ChartType = ExcelChartType.Histogram; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet["A1:A15"]; //類別軸bin設(shè)置 officeChart.PrimaryCategoryAxis.BinWidth = 8; //間隙寬度設(shè)置 officeChart.Series[0].DataFormat.Options.GapWidth = 6; //設(shè)置圖表標(biāo)題和軸標(biāo)題 officeChart.ChartTitle = "Height Data"; officeChart.PrimaryValueAxis.Title = "學(xué)生人數(shù)"; officeChart.PrimaryCategoryAxis.Title = "高度"; //隱藏圖例 officeChart.HasLegend = false; workbook.SaveToFile("Histogram_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("Boxandwhisker_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Yearly Vehicle Sales"; //設(shè)置圖表類型為Box and Whisker officeChart.ChartType = ExcelChartType.BoxAndWhisker; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet["A1:E17"]; //第一個(gè)系列的盒子和胡須設(shè)置 var seriesA = officeChart.Series[0]; seriesA.DataFormat.ShowInnerPoints = false; seriesA.DataFormat.ShowOutlierPoints = true; seriesA.DataFormat.ShowMeanMarkers = true; seriesA.DataFormat.ShowMeanLine = false; seriesA.DataFormat.QuartileCalculationType = ExcelQuartileCalculation.ExclusiveMedian; //第二個(gè)系列的盒子和胡須設(shè)置 var seriesB = officeChart.Series[1]; seriesB.DataFormat.ShowInnerPoints = false; seriesB.DataFormat.ShowOutlierPoints = true; seriesB.DataFormat.ShowMeanMarkers = true; seriesB.DataFormat.ShowMeanLine = false; seriesB.DataFormat.QuartileCalculationType = ExcelQuartileCalculation.InclusiveMedian; //第三個(gè)系列的盒子和胡須設(shè)置 var seriesC = officeChart.Series[2]; seriesC.DataFormat.ShowInnerPoints = false; seriesC.DataFormat.ShowOutlierPoints = true; seriesC.DataFormat.ShowMeanMarkers = true; seriesC.DataFormat.ShowMeanLine = false; seriesC.DataFormat.QuartileCalculationType = ExcelQuartileCalculation.ExclusiveMedian; workbook.SaveToFile("Boxandwhisker_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("treemap_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為TreeMap officeChart.ChartType = ExcelChartType.TreeMap; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet["A2:C11"]; //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Area by countries"; //設(shè)置 Treemap標(biāo)簽選項(xiàng)officeChart.Series[0].DataFormat.TreeMapLabelOption = ExcelTreeMapLabelOption.Banner; //格式化數(shù)據(jù)標(biāo)簽 officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.Size = 8; workbook.SaveToFile("treemap_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("Sunburst_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為Sunburst officeChart.ChartType = ExcelChartType.SunBurst; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet["A1:D16"]; //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Sales by Annual"; //格式化數(shù)據(jù)標(biāo)簽 officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.Size = 8; //隱藏圖例 officeChart.HasLegend = false; workbook.SaveToFile("Sunburst_chart.xlsx"); 工作簿工作簿 = new Workbook(); workbook.LoadFromFile("Funnel_sample.xlsx"); var sheet = workbook.Worksheets[0]; var officeChart = sheet.Charts.Add(); //設(shè)置圖表類型為漏斗 officeChart.ChartType = ExcelChartType.Funnel; //在工作表中設(shè)置數(shù)據(jù)范圍 officeChart.DataRange = sheet.Range["A1:B6"]; //設(shè)置圖表標(biāo)題 officeChart.ChartTitle = "Funnel"; //格式化圖例和數(shù)據(jù)標(biāo)簽選項(xiàng) officeChart.HasLegend = false; officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.HasValue = true; officeChart.Series[0].DataPoints.DefaultDataPoint.DataLabels.Size = 8; workbook.SaveToFile("Funnel_chart.xlsx"); |
漏洞 |
SPIREXLS-3386 SPIREXLS-3470 |
修復(fù) Excel 轉(zhuǎn) PDF 時(shí)內(nèi)容不正確的問題。 |
漏洞 | SPIREXLS-3396 | 修復(fù)了應(yīng)用程序在加載 .xlsx 文件時(shí)拋出錯(cuò)誤“Invalid LegendPositionType string val”的問題。 |
漏洞 | SPIREXLS-3422 | 修復(fù)組合圖表類型未正確獲取的問題。 |
漏洞 | SPIREXLS-3425 | 修復(fù)了應(yīng)用程序在復(fù)制工作表時(shí)拋出 System.ArgumentOutOfRangeException 的問題。 |
漏洞 | SPIREXLS-3426 | 修復(fù)了 Excel 轉(zhuǎn) PDF 時(shí)行丟失的問題。 |
漏洞 | SPIREXLS-3438 | 修復(fù)了加載 .xls 文件時(shí)應(yīng)用程序掛起的問題。 |
漏洞 | SPIREXLS-3449 | 修復(fù)了設(shè)置圖表錯(cuò)誤行末尾不起作用的問題。 |
漏洞 |
SPIREXLS-3455 SPIREXLS-3460 |
修復(fù)了應(yīng)用程序在加載 HTML 文件時(shí)拋出錯(cuò)誤“無法將其作為 ZipFile 讀取”的問題。 |
漏洞 |
SPIREXLS-3458 SPIREXLS-3472 |
修復(fù)了應(yīng)用程序在保存到 .xlsm 文件時(shí)拋出錯(cuò)誤“您無法為目錄條目寫入()數(shù)據(jù)”的問題。 |
漏洞 | SPIREXLS-3459 | 修復(fù)了應(yīng)用程序在加載 .xlsx 文件時(shí)拋出錯(cuò)誤“Invalid MsoLineDashStyle string val”的問題。 |
漏洞 | SPIREXLS-3464 | 修復(fù)了將 .xlsx 轉(zhuǎn)換為 PDF 時(shí)某些字符丟失的問題。 |
漏洞 | SPIREXLS-3471 | 修復(fù)了應(yīng)用程序拋出錯(cuò)誤“對象引用未設(shè)置為對象的實(shí)例”的問題。將 .xlsx 轉(zhuǎn)換為 PDF 時(shí)。 |
漏洞 | SPIREXLS-3480 | 修復(fù)添加新數(shù)據(jù)后獲取的最大行數(shù)和列數(shù)錯(cuò)誤的問題。 |
漏洞 | SPIREXLS-3481 | 修復(fù)了加載 .ods 文件時(shí)應(yīng)用程序掛起的問題。 |
漏洞 | SPIREXLS-3482 | 修復(fù)設(shè)置單元格透明背景色沒有生效的問題 |
Spire.Word
類別
ID
描述
漏洞
SPIREDOC-5938
修復(fù)了使用正則表達(dá)式查找文本時(shí)未找到所有匹配項(xiàng)的問題。
漏洞
SPIREDOC-6435
修復(fù)了應(yīng)用程序在加載 HTML 文件時(shí)拋出錯(cuò)誤“ArgumentOutOfRangeException”的問題。
漏洞
SPIREDOC-6545
SPIREDOC-6785
修復(fù)了 Word 轉(zhuǎn) PDF 后出現(xiàn)多余空白頁的問題。
漏洞
SPIREDOC-6597
修復(fù) Word 轉(zhuǎn) PDF 后換行不正確的問題。
漏洞
SPIREDOC-6635
修復(fù)了 Word 轉(zhuǎn) PDF 后圖片位置改變的問題。
漏洞
SPIREDOC-6710
修復(fù) Word 轉(zhuǎn) PDF 后文本重疊的問題。
漏洞
SPIREDOC-6718
修復(fù)了應(yīng)用程序在比較兩個(gè) Word 文檔時(shí)拋出錯(cuò)誤“集合已修改;枚舉操作可能無法執(zhí)行”的問題。
漏洞
SPIREDOC-6746
SPIREDOC-6772
SPIREDOC-6820
修復(fù)了應(yīng)用程序在將 Word 轉(zhuǎn)換為 PDF 時(shí)拋出錯(cuò)誤“對象引用未設(shè)置為對象的實(shí)例”的問題。
漏洞
SPIREDOC-6771
SPIREDOC-6793
修復(fù)了應(yīng)用程序在獲取 MergeGroupNames 時(shí)拋出錯(cuò)誤“Object reference not set to an instance of an object”的問題。
漏洞
SPIREDOC-6773
修復(fù) Word 轉(zhuǎn) PDF 后泰文亂碼的問題。
漏洞
SPIREDOC-6774
修復(fù)了應(yīng)用程序在加載 Word 文檔時(shí)拋出錯(cuò)誤“Zip 異?!钡膯栴}。
Spire.Presentation
類別
ID
描述
新功能
SPIREPPT-1698
支持獲取超鏈接的目標(biāo)幻燈片。
演示文稿 ppt = 新演示文稿();
ppt.LoadFromFile(inputFile);
IAutoShape shape = ppt.Slides[1].Shapes[0] as IAutoShape;
if (shape.Click.ActionType == HyperlinkActionType.GotoSlide)
{
ISlide targetSlide = shape.Click.TargetSlide;
Console.WriteLine("index = " + targetSlide.SlideNumber);
}
漏洞
SPIREPPT-1684
修復(fù)了加載和保存文件后無法打開 OLE 對象的問題。
漏洞
SPIREPPT-1700
修復(fù)了將形狀轉(zhuǎn)換為圖像后內(nèi)容被截?cái)嗟膯栴}。
漏洞
SPIREPPT-1702
修復(fù)了沒有獲得正確文本顏色的問題。
漏洞
SPIREPPT-1703
修復(fù)了沒有獲得正確的表格文本字體大小的問題。
漏洞
SPIREPPT-1704
修復(fù)了沒有為圖表系列獲取正確填充顏色的問題。
漏洞
SPIREPPT-1705
修復(fù)了沒有獲得正確的幻燈片放映過渡持續(xù)時(shí)間的問題。
漏洞
SPIREPPT-1706
修復(fù)了公式轉(zhuǎn)圖片后部分內(nèi)容丟失的問題。
Spire.Spreadsheet
類別 | ID | 描述 |
漏洞 | 電子表格-188 | 修復(fù)查看Excel文件時(shí)文件內(nèi)容被剪切的問題 |
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn