Spire.Presentation 11.10.4 现已正式发布。该版本支持打印幻灯片时保留备注,并调整了 .NET Core 的打包依赖项(将 .NET 6.0/9.0/10.0 的图片处理迁移至 SkiaSharp)。同时,一些在加载 PPTX 文档、转换 PPT 到 PDF 以及将 PPTX 保存为 PPSX 时出现的问题也得以成功被修复。更多详情如下。
新功能:
- 支持打印幻灯片时保留备注。
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
PresentationPrintDocument document = new PresentationPrintDocument(ppt);
document.PrintSlidesWithNotes = true;
document.PrinterSettings.PrintToFile = true;
document.PrinterSettings.PrintFileName = outputFile;
ppt.Print(document);
调整:
- 调整了 .NET Core 打包方式与依赖关系:.NET Core 通过遵循 .NET Standard 规范实现跨平台兼容性。针对 .NET 6.0、.NET 9.0 和 .NET 10.0,将图片相关处理从 System.Drawing 迁移至 SkiaSharp,并更新了相应的依赖项。
问题修复:
- 修复了加载含批注的 PPTX 文档时,程序抛出 "Comment by nonexistent author" 异常的问题。
- 修复了 PPT 转 PDF,色块未显示的问题。
- 修复了将 PPTX 文档保存为 PPSX 格式时,程序报 "Object reference not set to an instance of an object" 异常的问题。
- 修复了加载 PPTX 文档时,程序报 "Object reference not set to an instance of an object" 异常的问题。
.NET Core 打包与图像处理变更说明
针对 .NET 6.0、.NET 9.0 和 .NET 10.0 的依赖项已更新如下,
此处列出的依赖项均为最低版本要求:
| 依赖项 (Dependency) | .NET 6.0 | .NET 9.0 | .NET 10.0 |
| SkiaSharp | ≥ 3.116.1 | ≥ 3.116.1 | ≥ 3.116.1 |
| Microsoft.Win32.Registry | ≥ 5.0.0 | ≥ 5.0.0 | ≥ 5.0.0 |
| System.Buffers | ≥ 4.5.1 | ≥ 4.5.1 | ≥ 4.5.1 |
| System.Memory | ≥ 4.5.5 | ≥ 4.5.5 | ≥ 4.5.5 |
| System.Text.Encoding.CodePages | ≥ 6.0.0 | ≥ 9.0.0 | ≥ 10.0.0 |
| HarfBuzzSharp | ≥ 8.3.0.1 | ≥ 8.3.0.1 | ≥ 8.3.0.1 |
获取 Spire.Presentation 11.10.4 请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html







