spire.office 8.6.0 已发布。在该版本中,spire.pdf 支持转换多页 pdf 文档为单个 svg 文件;spire.xls 新增了优化删除行的速度的方法;spire.presentation 支持为 textframe 设置栏数。此外,许多已知问题也在该版本中被成功修复。详情请阅读以下内容。
该版本涵盖了最新版的 spire.doc,spire.pdf,spire.xls,spire.email,spire.docviewer, spire.pdfviewer,spire.presentation,spire.spreadsheet, spire.officeviewer, spire.docviewer, spire.barcode, spire.dataexport。
版本信息如下:
- spire.doc.dll v11.5.12
- spire.pdf.dll v9.6.0
- spire.xls.dll v13.5.6
- spire.presentation.dll v8.6.0
- spire.email.dll v6.5.7
- spire.docviewer.forms.dll v8.5.1
- spire.pdfviewer.forms.dll v9.6.0
- spire.pdfviewer.asp.dll v8.5.0
- spire.spreadsheet.dll v7.4.2
- spire.officeviewer.forms.dll v8.6.0
- spire.barcode.dll v7.2.1
- spire.dataexport.dll v4.8.0
- spire.dataexport.resourcemgr.dll v2.1.0
https://www.e-iceblue.cn/downloads/spire-office-net.html
spire.pdf
新功能:
- 支持转换多页 pdf 文档为单个 svg 文件。
// 加载文件
pdfdocument pdfdocument = new pdfdocument();
pdfdocument.loadfromfile("input.pdf");
// 多页保存pdf保存到一页svg
pdfdocument.convertoptions.outputtoonesvg = true;
// 保存文档
dfdocument.savetofile(args[1],fileformat.svg);
pdfdocument.close();
问题修复:
- 修复了pdf文档页数不同但大小一致的问题。
- 修复了查找文本失败的问题。
- 修复了绘制有旋转角度文本不生效的问题。
- 修复了将ofd文件转换为pdf文件时程序抛异常的问题。
- 修复了将pdf文件转为ppt文件后单词间空格丢失的问题。
- 修复了pdf转换为ppt后内容不一致的问题。
- 修复了提取表格内容时部分内容不正确的问题。
- 修复了使用正则表达式匹配文本时程序抛异常"system.indexoutofrangeexception"的问题。
- 修复了将pdf转换为excel后单元格格式不正确的问题。
- 优化了linux环境下将pdf转换为word文档的时间。
spire.xls
新功能:
- 新增了来实现chartsheet和worksheet之间可以互相移动位置的两个方法。
- 新增了worksheet.deleterows(int[] rows)方法来优化删除行的速度。
workbook.chartsheets[int index1].movesheet(int index2);
workbook.chartsheets[int index1].movechartsheet(int index2)
问题修复:
- 修复了sheet转到图片后透视表的字段显示为“column labels”的问题。
- 修复了转换xlsx文档到pdf时图表数据不刷新的问题。
- 修复了添加文本框时设置置于顶层功能不生效的问题。
- 修复了转换xlsx文档到pdf时表格样式不正确的问题。
- 修复了加载xls文档时程序抛syste.overflowexception异常的问题。
- 修复了获取的单元格的数据格式不正确的问题。
- 修复了添加html内容程序抛system.formatexception异常的问题。
- 修复了调用两次moveworksheet方法之后无法获取chartsheet的问题。
- 修复了单元格包含中文字符时设置autofitcolumns后文本还是超出单元格的问题。
- 修复了转换xlsx文档到html时背景颜色不一致的问题。
- 修复了加载xls文档程序报错“this structured storage version is not supported.”的问题 。
- 修复了添加的html strong标签的样式识别失败的问题。
spire.presentation
新功能:
- 支持为textframe设置栏数。
presentation ppt = new presentation();
ppt.loadfromfile(inputfile);
iautoshape shape1 = (iautoshape)ppt.slides[0].shapes[0];
shape1.textframe.columncount = 2;
iautoshape shape2 = (iautoshape)ppt.slides[1].shapes[0];
shape2.textframe.columncount = 3;
ppt.savetofile(outputfile, fileformat.pptx2013);
ppt.dispose();
问题修复:
- 修复了在编辑保存的ppt文件的图表数据时,有错误的问题。
- 修复了当图表数据具有某些空值时,切换行/列时遇到错误的问题。
- 修复了应用程序在拆分合并单元格时,抛出“merged cells found.”的问题。
- 修复了图表数据更新不正确的问题。
- 修复了将groupshape保存到图像后结果模糊的问题。
spire.doc
问题修复:
- 修复了加载文档时抛异常"system.invalidcastexception"的问题。
- 修复了word转换到html后内容丢失的问题。
- 修复了加载word文件时程序抛异常”system.invalidoperationexception"的问题。
- 修复了合并word文档时程序抛异常"system.argumentexception"的问题。
- 修复了word转换到pdf后文本缩进错误的问题。
- 修复了word转换到pdf后文档右边距不正确的问题。
- 修复了word转换到pdf后表格未对齐的问题。
- 修复了word转换到html后内容乱码的问题。