Spire.Office 5.8.5 已正式发布。该版本新增了一些功能,如Spire.Doc添加了比较功能、Spire.Presentation支持添加节和设置SmartArt节点的轮廓线样式、Spire.PDF将PDF转换为Excel时支持图表。此外,也修正了将Word转换为PDF/ Epub、Excel转换为PDF、PPT转换为PDF、XPS转换为PDF、更新Excel数据透视表、合并PDF文档以及从PDF文件中提取文本时出现的一些问题。更多新功能及问题修复详情如下。
该版本涵盖了最新版的Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.DataExport、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.OfficeViewer、Spire.Email。
版本信息如下:
- Spire.Doc.dll v8.8.2
- Spire.Pdf.dll v6.8.5
- Spire.XLS.dll v10.8.3
- Spire.Email.dll v3.6.7
- Spire.DocViewer.Forms.dll v5.1.1
- Spire.PdfViewer.Forms.dll v5.8.2
- Spire.PdfViewer.Asp.dll v5.8.2
- Spire.Presentation.dll v5.8.1
- Spire.Spreadsheet v4.5.0
- Spire.OfficeViewer.Forms.dll v5.8.5
- Spire.Barcode.dll v4.7.0
- Spire.DataExport.dll v4.1.9
- Spire.DataExport.ResourceMgr.dll v2.1.0
- Spire.Common.dll v10.8.5
- Spire.License.dll v1.3.8
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.Doc
新功能:
- 添加了比较功能。
Document doc1 = new Document();
doc1.LoadFromFile(inputFile2);
Document doc2 = new Document();
doc2.LoadFromFile(inputFile1);
doc1.Compare(doc2, "summer");
doc1.SaveToFile(outputFile);
doc1.Dispose();
调整:
- ShapeGroup添加了ICompositeObject接口。
- ShapeBase不再实现ICompositeObject接口。
问题修复:
- 修复了转换Word到PDF换行不正确的问题。
- 修复了显示文档时样式工具栏中添加的Heading样式丢失的问题。
- 修复了保存文件打开文档时提示错误的问题。
- 修复了Word转Epub时抛"ExternalException"异常的问题。
- 修复了Word转Epub时抛"NullReferenceException"异常的问题。
- 修复了添加html格式文本时抛"XmlException"异常的问题。
- 修复了当合并值为空时图片域显示空白图片的问题。
- 修复了使用代码table.TableFormat.Positioning.ClearFormatting()后表格边框被删除的问题。
Spire.XLS
问题修复:
- 修复了更新透视表保存文档后,MS Excel打开文档时提示内容错误的问题。
- 修复了加载文档保存到新文档,MS Excel打开文档时提示内容错误的问题。
- 修复了转换Excel到PDF抛出错误 "Error in calculating cell B2 in Worksheet Sheet1" 的问题。
- 修复了保存为.xls文档格式时抛出 "InvalidCastException" 的问题。
- 修复了在德语环境中转换Excel到PDF,数据格式不正确的问题。
- 修复了转换Excel到PDF公式值显示不正确的问题。
Spire.Presentation
新功能:
- 支持添加节
Presentation presentation = new Presentation();
presentation.LoadFromFile(pptfile);
ISlide slide = presentation.Slides[0];
//添加节
presentation.SectionList.Add("section1", slide);
//获取节
Section section;
String name;
for (int i = 0; i < presentation.SectionList.Count; i++)
{
section = presentation.SectionList[i];
name = section.Name;
foreach (long id in section.SlideIdList)
{
}
}
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
for (int i = 0; i < count; i++)
{
node = smartArt.Nodes[i];
node.Line.FillType = FillFormatType.Solid;
node.Line.SolidFillColor.Color = Color.Gray;
node.Line.Width = 2;
}
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
for (int i = 0; i < count; i++)
{
node = smartArt.Nodes[i];
node.LinkLine.FillType = FillFormatType.Solid;
node.LinkLine.SolidFillColor.Color = Color.Gray;
node.LinkLine.Width = 2;
node.LinkLine.DashStyle = LineDashStyleType.SystemDash;
}
问题修复:
- 修复了转换PPT到PDF线条位置不正确的问题
- 修复了加载一个PPTX文档抛异常System.NullReferenceException
- 修复了设置动画持续时间不生效的问题
- 修复了转换PPT到PDF内容后部分丢失的问题
Spire.PDF
新功能:
- 转PDF到Excel时支持图表
问题修复:
- 修复了高亮查找到的文本出错的问题。
- 修复了转换xps到pdf,字符丢失的问题。
- 修复了获取的书签名字乱码的问题。
- 修复了获取PDF文档的附件,程序抛 "FormatException" 的问题。
- 修复了绘制Grid,内容较多的行没有顺序绘制,直接跳到下一页的问题。
- 修复了加载PDF文档,程序挂起的问题。
- 修复了合并文档,程序抛 "NullReferenceException" 的问题。
- 修复了加载文档,程序抛 "format error" 的问题。
- 修复了提取文本换行符丢失的问题。
- 修复了正则表达式查找文本结果不全的问题。
- 修复了打印PDF时文本显示不完整的问题
- 修复了使用page.CreateTemplate().Draw(PdfCanvas graphics, PointF location)方法绘制页面内容时,抛异常“System.NullReferenceException“的问题
- 修复了获取出的图片数目不正确问题
- 修复了填充单元按钮域后,转换PDF到图片失败的问题。
- 修复了转换PDF到图片内容位置不正确的问题。
- 修复了打印PDF抛出Win32Exception的问题。
- 修复了使用USB证书令牌实现LTV签名抛异常export private key failed的问题。
- 修复了嵌套的Grid在分页时边框位置不正确的问题。
- 修复了PDF文档进行拆分和合并后文件大小增加的问题。
- 修复了加载文档抛 "System.OutOfMemoryException" 异常的问题。
- 修复了打印PDF内容丢失的问题。
- 修复了打印文件的大小太大的问题。
- 修复了波斯语和阿拉伯文本不能被找到的问题。
- 修复了Adobe打开填充域后的文档时提示扩展功能错误的问题。
- 修复了文本不能画到PDF文档上的问题。
- 修复了填充域后文本位置不正确的问题。
- 修复了替换文本后结果文档打不开的问题。
- 修复了当设置在方法DrawImage里的参数CompressionQuality时抛“NullReferenceException”异常的问题。
- 修复了XPS转PDF内容不正确的问题。
- 修复了多次填充域后文档损坏的问题。
- 修复了使用正则表达式不能找到文本的问题。
- 修复了使用方法ApplyRecoverString时抛“ArgumentException”异常的问题。
- 修复了PDF转图片时抛“NullReferenceException”异常的问题。