spire.office 6.4.4已发布。本次版本更新带来了一些优质功能,比如:spire.pdf支持了在转换pdf到excel时设置根据线条决定单元格的功能,新增了printsettings.isvalid属性的功能以判断打印机是否可以使用;spire.xls支持获取打印机自定义的纸张大小后设置给工作表;spire.presentation支持通过流添加video以及支持了添加自定义路径动画。除此之外,该版本还修复了大量问题。详情请阅读以下内容。
该版本涵盖了最新版的spire.doc, spire.pdf, spire.xls, spire.presentation, spire.email, spire.docviewer, spire.pdfviewer, spire.spreadsheet, spire.officeviewer, spire.dataexport, spire.barcode。
问题修复:
- spire.doc.dll v9.4.18
- spire.pdf.dll v7.4.13
- spire.xls.dll v11.4.6
- spire.email.dll v4.1.2
- spire.docviewer.forms.dll v6.1.0
- spire.pdfviewer.forms.dll v6.4.4
- spire.pdfviewer.asp.dll v6.4.4
- spire.presentation.dll v6.4.5
- spire.spreadsheet v5.4.1
- spire.officeviewer.forms.dll v6.4.4
- spire.barcode.dll v5.4.0
- spire.dataexport.dll v4.1.9
- spire.dataexport.resourcemgr.dll v2.1.0
- spire.license.dll v1.3.8
https://www.e-iceblue.cn/downloads/spire-office-net.html
spire.pdf
新功能:
- 支持在转换pdf到excel时设置根据线条决定单元格
pdfdocument pdf = new pdfdocument();
pdf.loadfromfile(pdffile);
pdf.convertoptions.setpdftoxlsxoptions(pdftoxlsxlayout.line);
pdf.savetofile(excelfile, fileformat.xlsx);
pdfdocument pdf = new pdfdocument();
pdf.loadfromfile(inputfile);
pdf.printsettings.printername = @"microsoft xps document writer";
bool value = pdf.printsettings.isvalid;
问题修复:
- 优化了转换pdf到图片速度慢的问题
- 修复了转换pdf到图片内容不正确的问题
- 修复了打印多份pdf失败的问题
- 修复了转换pdf到xps抛异常“index was outside the bounds of the array”的问题
- 修复了给pdf添加多个数字签名,生成的pdf签名无效的问题
- 修复了打印pdf抛异常“object reference not set to an instance of an object”的问题
- 修复了打印pdf结果不正确的问题
- 修复了转换pdf到excel,内容不正确的问题
- 修复了绘制链接到页脚模板,抛异常“object reference not set to an instance of an object”的问题
- 修复了绘制表格抛异常“cannot draw table, because there is no enough space for it”的问题
- 修复了pdf转excel单元格未正确拆分的问题
spire.doc
问题修复:
- 修复了转换word到pdf,多出空白行的问题
- 修复了转换word到xps,内容不正确的问题
- 修复了转换word到pdf,内容不正确的问题
- 修复了转换word到pdf,内容重叠的问题
- 修复了更新目录内容不正确的问题
- 修复了无法获取文档总页码的问题
- 修复了转换word到pdf,书签重复的问题
- 修复了转换word到pdf,书签内容不正确的问题
- 修复了添加的公式不正确的问题
- 修复了加载html文档抛异常“input string was not in a correct format.”的问题
- 修复了添加html文本抛异常“input string was not in a correct format”的问题
- 修复了转换docx到doc,图片颜色被改变的问题
spire.spreadsheet
问题修复:
- 修复了公式显示错误的问题
- 修复了加载文档抛异常“system.nullreferenceexception”的问题
spire.xls
新功能:
- 支持获取打印机自定义的纸张大小后设置给工作表
pagesetup.custompapersizename
问题修复:
- 修复了在xamarin android应用程序中将excel转换为pdf时,程序抛“ unhandled exception”异常的问题
- 修复了转换excel到pdf时,程序抛“invalid pivot table data source”异常的问题
- 修复了调用filter()后,数据出现多行空格的问题
- 修复了复制公式到单元格范围不生效的问题
- 修复了嵌入idautomationhc39m字体后,转pdf内容显示不正确的问题
- 修复了调用“ chart.primarycategoryaxis.isautomin = false”时,程序抛“system.nullreferenceexception”异常的问题
- 修复了创建的chart中,x轴坐标排列不正确的问题
- 修复了直接加载保存excel文档后,公式改变的问题
spire.presentation
新功能:
- 支持通过流添加video
appendvideomedia(stream stream, rectanglef rectangle);
presentation ppt = new presentation();
iautoshape shape = ppt.slides[0].shapes.appendshape(shapetype.rectangle, new rectanglef(0, 0, 200, 200));
animationeffect effect = ppt.slides[0].timeline.mainsequence.
addeffect(shape, animationeffecttype.pathuser);
commonbehaviorcollection common = effect.commonbehaviorcollection;
animationmotion motion = (animationmotion)common[0];
motion.origin = animationmotionorigin.layout;
motion.patheditmode = animationmotionpatheditmode.relative;
motionpath moinpath = new motionpath();
moinpath.add(motioncommandpathtype.moveto, new pointf[] { new pointf(0, 0) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.lineto, new pointf[] { new pointf(0.1f, 0.1f) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.lineto, new pointf[] { new pointf(-0.1f, 0.2f) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.end, new pointf[] { }, motionpathpointstype.curvestraight, true);
motion.path = moinpath;
ppt.savetofile(outputfile, fileformat.pptx2010);
ppt.dispose();
问题修复:
- 修复了转换pptx到图片,阴影效果错误的问题
- 修复了设置动画持续时间不正确的问题
- 修复了转换pptx到图片,内容不正确的问题
- 修复了加载pptx文档抛异常“system.nullreferenceexception”的问题
- 修复了加载ppt文档抛异常“system.indexoutofrangeexception”的问题