我们很高兴地宣布,Spire.Office 11.5.0 正式发布。在此版本中,Spire.Doc 增强了 Word 到 PDF 转换功能。Spire.XLS 增强了 Excel 到 EMF 的转换功能。Spire.Presentation 优化了从 PowerPoint 到 PDF 的转换功能。Spire.PDF 新增支持 SHA-2 和 SHA-256 数字签名算法。此外,本版本还修复了大量已知问题。
本次发布集成了以下组件的最新版本:Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.Email、Spire.Spreadsheet 和 Spire.OfficeViewer。
版本信息如下:
- Spire.Doc.dll v14.5.14
- Spire.PDF.dll v12.5.8
- Spire.XLS.dll v16.5.6
- Spire.Presentation.dll v11.5.1
- Spire.Barcode.dll v7.5.0
- Spire.Email.dll v6.8.0
- Spire.DocViewer.Forms.dll v8.9.5
- Spire.PdfViewer.Asp.dll v8.2.13
- Spire.PdfViewer.Forms.dll v8.2.13
- Spire.Spreadsheet.dll v7.5.3
- Spire.OfficeViewer.Forms.dll v8.8.1
获取Spire.Office 11.5.0,请点击:
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.Doc
问题修复:
- 修复了使用“FixedLayoutPage.Section”时,抛“NullReferenceException”的异常的问题。
- 修复了使用“FixedLayoutDocument.GetLayoutEntitiesOfNode()”时,抛“NullReferenceException”的异常的问题。
- 修复了word 转pdf, 部分字体效果不正确的问题。
- 修复了IF域的值获取不正确的问题。
- 修复了word 转pdf ,表格布局不一致的问题。
- 修复了word 转pdf ,抛异常“Arg_NullReferenceException”的问题。
- 修复了移除域保存Word到PDF 抛“System.InvalidOperationException”的问题。
- 修复了加载word文档 “Value cannot be null. Arg_ParamName_Name”的问题。
- 修复了word 转pdf ,分页不一致的问题。
- 修复了替换书签抛异常“NullReferenceException”的问题。
- 修复了ExtractPages(0,1) 提取的页面不正确的问题。
Spire.XLS
问题修复:
- 修复了 Excel 转 EMF, 程序抛“GDI+”异常的问题。
- 修复了读取出的公式的值不正确的问题。
- 修复了公式值计算错误的问题。
Spire.Presentation
问题修复:
- 修复了加载 PPT 格式文档时,程序抛出异常的问题。
- 修复了转换 PowerPoint 到 PDF 时,渲染效果不正确的问题。
- 修复了转换形状到 SVG 时,内容变空白的问题。
- 修复了获取 PowerPoint 文档中的图片时,程序抛出 “Parameter is not valid” 异常的问题。
- 修复了转换 PowerPoint 到 PDF 时,图片丢失的问题。
Spire.PDF
新功能:
- 数字签名新增支持 SHA-2 和 SHA-256 算法。
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
X509Certificate2 cert = new X509Certificate2(inputFile_pfx, "e-iceblue");
IPdfSignatureFormatter formatter = new PdfPKCS7Formatter(cert, false);
PdfMDPSignatureMaker pdfMDPSignatureMaker = new PdfMDPSignatureMaker(pdf, formatter);
PdfSignature signature = pdfMDPSignatureMaker.Signature;
signature.Name = "e-iceblue";
signature.ContactInfo = "028-81705109";
signature.Location = "chengdu";
signature.Reason = " this document";
PdfSignatureAppearance appearance = new PdfSignatureAppearance(signature);
appearance.NameLabel = "Signer: ";
appearance.ContactInfoLabel = "ContactInfo: ";
appearance.LocationLabel = "Loaction: ";
appearance.ReasonLabel = "Reason: ";
pdfMDPSignatureMaker.MakeSignature("signName", pdf.Pages[0], 100, 100, 250, 200, appearance);
foreach (HashAlgorithmType hashAlgorithmType in Enum.GetValues(typeof(HashAlgorithmType)))
{
if (string.Equals(hashAlgorithmType.ToString(), "SM3", StringComparison.OrdinalIgnoreCase))
{
continue;
}
//default value of HashAlgorithm is SHA256
formatter.Properties.HashAlgorithm = hashAlgorithmType;
try
{
pdf.SaveToFile( "out.pdf", FileFormat.PDF);
}
catch (Exception ex)
{
Console.WriteLine($"error:{ex.Message}");
}
}
pdf.Dispose();
问题修复:
- 修复了打印 PDF 时内容丢失的问题。
- 修复了 PDF 转图片时程序抛出 “ArgumentException” 异常的问题。
- 修复了合并 PDF 文档时程序抛出 “Object reference not set to an instance of an object” 异常的问题。
- 修复了使用指定字体填充 PdfTextBoxField 内容后,再获取字体不正确的问题。
- 修复了结果文档保存时覆盖源文件,程序抛出 “IndexOutOfRangeException” 异常的问题。
- 修复了转换 PDF 到 Image 时,程序抛出 “Index was outside the bounds of the array.” 异常的问题。
- 修复了提取 PDF 页面的文本时,字符重复的问题。







