Spire.Office 9.12.0 已发布,在该版本中,Spire.Doc 支持在段落中查找文本;Spire.XLS 支持 SEC、WRAPCOLS、REPTARRAY、PERCENTOF、SUBSTITUTES 等函数;Spire.PDF 支持进行多页打印时设置自动旋转方向;Spire.Presentation 增强了 PPT 到 PDF 的转换功能;Spire.Barcode 修复了扫描出的二维码的结果不正确的问题;Spire.OCR 优化了内存回收效率和识别速度。
此外,该版本还成功修复了大量已知问题。详情请阅读以下内容。
版本信息如下:
- Spire.Doc 12.12.12
- Spire.XLS 14.12.2
- Spire.Presentation 9.12.1
- Spire.PDF 10.12.4
- Spire.Barcode 7.3.5
- Spire.Email 6.6.0
- Spire.DocViewer.Forms 8.8.3
- Spire.PdfViewer.Asp 7.12.23
- Spire.PdfViewer.Forms 7.12.23
- Spire.Spreadsheet 7.5.2
- Spire.OfficeViewer.Forms 8.7.15
- Spire.DataExport 4.9.0
- Spire.DataExport.ResourceMgr 2.1.0
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.Doc
新功能:
- 支持在段落中查找文本
paragraph.FindAllString();
paragraph.FindAllPattern();
问题修复:
- 修复了转换 Word 文档到 PDF 文档时,程序抛出 "Encoder invalid" 错误的问题。
- 修复了使用 officeMath.FromMathMLCode 方法转换出的公式不正确的问题。
- 修复了转换 HTML 文档到 Word 文档后,公式没有显示完整的问题。
- 修复了加载 ODT 文件文档时,程序抛出异常:System.ArgumentException: "List level must be less 8 and greater then 0" 的问题。
- 修复了转换 Word 文档到 PDF 文档时,程序抛出异常:System.InvalidOperationException: "Operation is not valid due to the current state of the object." 的问题。
- 修复了转换 Word 文档到 PDF 文档后,部分内容顺序不正确的问题。
Spire.XLS
新功能:
- 支持 SEC 函数。
- 支持 WRAPCOLS 函数。
- 支持 WRAPROWS 函数。
- 支持 VSTACK 函数。
- 支持 PERCENTOF 函数。
- 支持 REPTARRAY 函数。
- 支持 SECH 函数。
- 支持 IMTAN 函数。
- 支持 IMCSC 函数。
- 支持 IMCOT 函数。
- 支持 IMSEC 函数。
- 支持 SUBSTITUTES 函数。
问题修复:
- 修复了用针式打印机打印 Excel 文档时,内容被缩小的问题。
- 修复了转换 Excel 文档到 PDF 文档时,格式不正确的问题。
- 修复了转换 Excel 文档到 PDF 文档时,图例中的文本位置不正确的问题。
Spire.PDF
新功能:
- 支持在进行多页打印时设置自动旋转方向的功能。
- 支持了获取按钮对应的跳转页面的功能。
PdfMultiPageLayout printParameters = pdf.PrintSettings.SelectMultiPageLayout(1, 2);
printParameters.AutoRotate = true;
pdf.PrintSettings.Duplex = Duplex.Horizontal;
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(inputFile);
PdfFormWidget formWidget = (PdfFormWidget)doc.Form;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.AppendLine("btnAction:");
for (int i = 0; i < formWidget.FieldsWidget.Count; ++i)
{
var field = formWidget.FieldsWidget[i] as PdfButtonWidgetFieldWidget;
if (field.Actions.MouseUp != null && field.Actions.MouseUp is PdfNamedAction)
{
var mouseUp = (PdfNamedAction)field.Actions.MouseUp;
stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseUp-" + mouseUp.Destination.ToString());
}
else if (field.Actions.MouseDown != null && field.Actions.MouseDown is PdfNamedAction)
{
var mouseDown = (PdfNamedAction)field.Actions.MouseDown;
stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseDown--" + mouseDown.Destination.ToString());
}
else if (field.Actions.MouseDown != null && field.Actions.MouseDown is PdfUriAction)
{
var mouseDown = (PdfUriAction)field.Actions.MouseDown;
stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseDown--" + mouseDown.Uri.ToString());
}
else if (field.Actions.MouseUp != null && field.Actions.MouseUp is PdfUriAction)
{
var mouseUp = (PdfUriAction)field.Actions.MouseUp;
stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseUp-" + mouseUp.Uri.ToString());
}
}
File.WriteAllText(outputFile, stringBuilder.ToString());
doc.Dispose();
问题修复:
- 修复了打印 PDF 文档时内容丢失的问题。
- 修复了打印 PDF 文档时颜色不正确的问题。
- 修复了表单域扁平化失败的问题。
- 修复了转换 PDF 到 SVG 时程序抛出异常 System.NullReferenceException: 'Object reference not set to an instance of an object.' 的问题。
- 修复了转换 PDF 到图片时文字内容消失的问题。
- 修复了转换出的 PDFA 文档不符合 PDF 版本标准的问题。
- 修复了删除 PdfWatermarkAnnotationWidget 水印时只能删掉第一页的问题。
- 修复了转换 PDF 到P DFA3A 时程序抛出异常 System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' 的问题。
Spire.Presentation
问题修复:
- 修复了转换 PPT 到 PDF 时超链接丢失的问题。
- 修复了给空数据源图表赋值时程序抛出异常的问题。
- 修复了使用 netstandard dll 加载文档时程序抛出 Spire.Presentation.DocumentUnkownFormatException: "Microsoft PowerPoint 2007 file is corrupted." 异常的问题。
- 修复了转换 HTML 到 PPT 时丢失图片的问题。
- 修复了加载文档时程序抛出 Spire.Presentation.AppException: "Property not found" 异常的问题。
Spire.Barcode
问题修复:
- 修复了扫描出的二维码的结果不正确的问题。
Spire.OCR
问题修复:
- 优化了内存回收效率和识别速度。
- 修复了获取出的文本坐标不正确的问题。
- 修复了倒立文本的识别结果不正确的问题。
- 修复了在 Web 项目中扫描图片时程序中断的问题。
- 修复了部分文本识别出的结果不正确的问题。
- 修复了在多线程下扫描图片时程序抛出异常 "Error occurred during ocr." 的问题。
- 修复了在 Windows Server2016 OS 下扫描图片时程序抛出异常 "Error occurred during ocr." 的问题。
- 修复了部分文本没有被识别出来的问题。
- 修复了在 Web 项目中扫描图片时程序出现闪退的问题。
- 修复了模型路径中的文件夹名字包含空格时程序抛出异常 "Error occurred during ocr." 的问题。