在公司各部门的共同努力下,Spire.Office的热修复版本2.16.23正式发布了。该版本新加了一系列功能,例如:在Excel工作表中,支持更多的条件表达式,Spire.PDF支持每张纸上打印多张pdf页面。此外,本次更新对现有的类、属性进行了调整,并修复了大量的漏洞,以提高产品稳定度和性能。
该版本涵盖了最新版的Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.DataExport, Spire.Spreadsheet, Spire.Barcode, Spire.DocViewer, Spire.PDFViewer, Spire.OfficeViewer, Spire.Email,版本信息如下:
Versions:
- Spire.Barcode.dll 1.4.11
- Spire.DataExport.dll 3.5.133
- Spire.Doc.dll 6.0.58
- Spire.DocViewer.Forms.dll 2.4.38
- Spire.Email.dll 1.1.16
- Spire.Pdf.dll 3.9.480
- Spire.PdfViewer.Forms.dll 2.12.47
- Spire.Presentation.dll 2.8.81
- Spire.XLS.dll 7.12.120
- Spire.Spreadsheet.dll 2.2.50
- Spire.OfficeViewer.Forms.dll 2.16.23
获取最新版的 Spire.Office 2.16.23,请点击:
Spire.Doc
新功能:
- 公开属性Paragraph.Format.BeforeAutoSpacing。
- 公开属性Paragraph.Format.AfterAutoSpacing。
问题修复:
- 修复了克隆文档后项目编号丢失的问题。
- 修复了给表格运用样式时抛NullReferenceException的问题。
- 修复了使用table.AutoFit(AutoFitBehaviorType.AutoFitToWindow)后结果不正确的问题。
- 修复了在云上使用PS方法将Word转成PDF时无法嵌入字体的问题。
- 修复了保存到PDF时图片质量不佳的问题。
- 修复了使用AppendHTML方法时抛ArgumentOutOfRangeException的问题。
- 修复了转换word到PDF后表单被覆盖的问题。
- 修复了运用标题时多出章节数的问题。
- 修复了使用LoadFromStream方法时抛NullReferenceException的问题。
- 修复了修改图片尺寸后INCLUDEPICTURE域中多出图片的问题。
- 修复了方法GetText没获取在shapes中的文本。
- 解决了使用document.LoadFromStream(stream, FileFormat.Auto)加载一个html文件抛"This is not a structured storage file"的问题。
- 修复了当使用pdf转换方法转换为pdf时造成图片上链接丢失的问题。
- 修复了加载WordXml文档时引起"Cannot insert an object of type CustomXml into the Body"错误的问题。
- 修复了更新域后页码没有跟着更新的问题。
- 修复了转换Word到PDF时进程挂起的问题。
- 修复了转换到图片时抛ArgumentException的问题。
- 修复了转换到PDF时图片被移动的问题。
- 修复了加载文件时抛NullReferenceException的问题。
- 修复了无法修改文本颜色的问题。
- 修复了克隆文档后使用SaveToStream方法会抛NullReferenceException的问题。
- 修复了合并文档时抛"An item with the same key has already been added."异常的问题。
- 修复了造成转PDF时堆栈溢出的问题。
- 修复了引起转RTF为PDF时引起字符串不能为0长度错误的问题。
- 修复了转RTF为PDF时造成线条丢失的问题。
- 修复了引起合并之后表格行对齐方式不正确的问题。
- 修复了转TXT时罗马数字3被转为阿拉伯数字3的问题。
- 修复了链接到书签的超链接在转PDF创建书签后不工作的问题。
- 修复了转pdf时引起内容重叠的问题。
- 修复了当克隆没有ListFormat段落时造成后面段落的ListFormat.CurrentListStyle为空的问题。
Spire.PDF
新功能:
- 添加PdfPrintSettings.SelectMultiPageLayout方法支持每张纸上打印多张pdf页面。
- 支持转换Pdf到docx格式.
- 添加方法Spire.Pdf.PdfDocument.Preview(PrintPreviewControl printPreviewControl)在PrintPreviewControl中实现打印预览.
- 支持转换PDF到HTML流的方法。.SelectMultiPageLayout method to support printing multiple pages per sheet.
- 添加新的压缩有图片的PDF文档的方法TryCompressImage.
- 支持转换PDF到自定义宽高的SVG.
问题修复:
- 修复了转换PDF到image时文本被剪切和翻转。
- 修复了打印时图片多出黑色背景的问题。
- 修复了多次签名后签名不正确的问题。
- 修复了无法给PDF添加附件的问题。
- 修复了转换到图片时在域里的数据丢失的问题。
- 修复了选择实际大小和自动横纵向打印时无法居中打印的问题。
- 修复了转换PDF到XPS时抛NullReferenceException异常问题。
- 修复了系统区域语言为俄罗斯时加载xps抛异常的问题。
- 修复了提取文本乱码的问题。
- 修复了打印时内容被剪切的问题。
- 修复了VerifySignature方法返回错误的布尔值。
- 修复了打印时字符的音标被打印到错误的平面上。
- 修复了引起反复加载文档绘制图片然后保存文档后文档打开提示图片数据不充分的问题。
- 修复了引起转图片内容乱码的问题。
- 修复了引起转图片内容丢失的问题。
- 修复了引起SaveAsImage方法抛出KeyNotFoundException异常的问题。
- 修复了引起FindText方法抛出FormatException异常的问题。
- 修复了文本和图片不能在层上绘制的问题。
- 修复了引起拆分文档后结果不正确的问题。
- 修复了当设置ActualSize打印文档时打印结果没居中的问题。
- 修复了扁平化域后签名丢失的问题。
- 优化了TryCompressImage方法使文档变得更小。
- 优化了XPS到PDF转换方法。
- 修复了使用我们产品创建的图章无法手动打印。
- 修复了转换为doc时造成内容重叠的问题。
- 修复了引起在x86平台下获取图片时抛出内存溢出异常的问题。
- 优化了PDF转图片的时间消耗。
- 修复了渐变色打印不正确的问题。
- 修复了转图片时引起内容丢失的问题。
- 修复了转图片时引起无效转换异常的问题。
调整:
- 废弃PdfSecurity.Permissions 和 PdfSecurity.KeySize set属性.
- 废弃PdfSecurity.OwnerPassword, PdfSecurity.UserPassword属性.
- 废弃PdfSecurity.ResetPermissions 和 PdfSecurity.SetPermissions方法.
- 废弃PdfDocument.PrintDocument.PrintController属性.使用PdfDocument.PdfPrintSettings.PrintController属性替代.
- 废弃PdfDocument.PrintDocument.PrinterSettings.Duplex属性.使用PdfDocument.PdfPrintSettings.Duplex属性替代.
- 废弃PdfDocument.PrintDocument.QueryPageSettings属性.使用PdfDocument.PdfPrintSettings.QueryPageSettings property属性替代.
- 废弃PdfDocument.PrintDocument.PrinterSettings.PaperSources and PdfDocument.PrintDocument.DefaultPageSettings.PaperSource属性.使用PdfDocument.PrintSettings.PdfPaperSettings属性替代
- 废弃Spire.Pdf.PdfDocument.PageScaling and Spire.Pdf.PdfDocument.CustomScaling两个属性。
Spire.XLS
新功能:
- 支持操作更多的条件表达式。
- 添加ConditionalFormatWrapper.StopIfTrue属性支持当条件符合时停止处理当前规则。
问题修复:
- 修复了引起条件格式化背景颜色设置不正确的问题。
- 修复了会计数字格式转换为pdf后不正确的问题。
- 修复了加载时引起OverFlowException的问题。
- 修复了保存为Pdf时引起invalid column index异常的问题。
- 解决了转换为CSV后不是分割符的逗号被当作了分隔符。
- 修复了引起转换使用OTF字体的文档为pdf时抛出"object reference not set to an instance of an object"错误的问题。
- 修复了当线程文化不是固定文化时数据格式不正确的问题。
- 修复了当转换为pdf时会计数据格式把$符号挤出单元格的问题。
- 修复了引起加载已存在的Chart修改PrimaryCategoryAxis.CategoryType属性不工作的问题。
- 修复了引起ConditionalFormatWrapper.Priority 属性不工作的问题。
- 修复了引起单元格包括日期时间格式时AutoFitColumn方法不工作的问题。
Spire.PDFViewer
新功能:
- 添加方法PdfDocumentViewer.SearchText(string searchText, Color highlightColor, bool ignoreCase)支持区分大小写
调整:
- 废弃Spire.PdfViewer.Forms.PdfDocumentViewer(PdfViewer).Print方法,使用Spire.PdfViewer.Forms.PdfDocumentViewer(PdfViewer).PrintDoc方法代替。
- 废弃Spire.PdfViewer.Forms.PdfDocumentViewer(PdfViewer).PrintDocument属性,使用Spire.PdfViewer.Forms.PdfDocumentViewer(PdfViewer).PdfPrintSettings属性替代.
Spire.DocViewer
新功能:
- 添加VerticalScroll和HorizontalScroll属性支持在winform程序中隐藏查看器的滚动条。
问题修复:
- 修复文档显示时多出空白页的问题。
Spire.Barcode
新功能:
- 公布了BarcodeSettings.DataMatrixSymbolShape属性,以便于能在创建DataMatrix时设置形状。
- 为Aztec添加了2个属性。