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”的问题