Spire.Presentation 9.3.0 已发布。该版本在原有的 Spire.Presentation 产品基础上,增加了 PresentationAI 功能。通过向 AI 大模型发送请求,可以在 AI 的帮助下实现文本润色、翻译、文本总结、文本续写、演示文稿生成以及图片生成等功能。详情请阅读以下内容。
主要 AI 功能及对应的 API:
功能 | API |
文本润色 | public string Polish(IShape shape, string language); |
翻译 | public string Translate(ISlide slide, string language); |
总结 | public string Summarize(IShape shape, string language); |
幻灯片生成 | public Presentation Generate(string describe, string language, bool genareteBackGroundImage); |
提问 | public string Ask(string question, bool enableHistory = false); |
文档搜索 | public string DocumentSearch(string question, string file_server_path, bool enableHistory = false); |
图片生成 | public Stream ImageGenerate(string description); |
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html