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

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - 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