惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - shunliy

asp.net core 3.1 webapi 跨域解决办法 ServiceStack在IIS7中发布后出现403.14错误 ORACLE 误删除数据恢复 Xamarin官方示例代码无法部署,提示已跳过部署解决方法 安装完Oracle之后的注意事项 在VS2013中使用水晶报表 ArcObjects10.0MapControl不显示地图内容 ArcObjects10.0引用控件报错 ArcGIS Desktop10.2与CityEngine2012兼容问题 Acess定义过多字段 Oracle解决导入CLOB大字段数据失败的问题 MVC中的几个问题汇总 SQL Network Interfaces error: 26 - 定位指定的服务器/实例时出错 远程登录问题 VS2010不能有System文件夹 删除重复数据 远程桌面不能拷贝文件 cannot load msptls.dll SQLServer中触发器不能批量插入
使用Aspose.Slides把ppt转换成pdf问题的解决,丢失文本和报IBM437字符集问题
shunliy · 2025-07-19 · via 博客园 - shunliy

最近升级一个旧的系统的文档转换,老系统采用.NET5.0开发,Aspose.Slides的版本是18.9,需要升级到25.4。直接替换到dll后,出现了如下两个问题。

问题一:System.ArgumentException:“'IBM437' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. Arg_ParamName_Name”

这是因为在.NET 5中,许多传统的编码是默认不包含的,需要手动启用。添加System.Text.Encoding.CodePages的包引用。然后在Main方法中添加:

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

问题二:解决上述问题后,能够实现ppt的转换,但是导出的pdf,图片元素还在,所有文字都缺失了,所有的ppt打开都没我问题,字体也都安装了。跟踪调试ppt的所有slides里面的TextFrame也未发现异常。我想可能是版本兼容的问题,就用.NET 8试了一下,发现是可以的。在NuGet包管理器里面发现25.4确实不支持.NET 5.0了,

以后引用第三方插件还是通过NuGet包管理器去引用,尽量避免直接引用dll。

问题三:Unable to load DLL 'libSkiaSharp' or one of its dependencies: 找不到指定的模块。 (0x8007007E)

Aspose.Cells25.4报上述错误。SkiaSharp版本的问题。通过NuGet包安装默认安装的是3.119.0版本,

在Aspose官方网站上看到这样的描述

https://docs.aspose.com/cells/zh/net/how-to-run-aspose-cells-for-net6/

image