在 Java 中阅读 Powerpoint SmartArt

Reading Powerpoint SmartArt in Java

我发现 Apache POI 不支持读取 SmartArt 组件。 (我说的对吗?)

所以我尝试了 Aspose.Slides 并且成功了。 但是试用版有严重的限制。 (无法获取长度超过 5 个字符的文本)

有人可以帮忙吗?

您可以使用 docx4j/pptx4j 阅读 SmartArt。

要查看它是如何表示的,请将您的示例 pptx 上传到 webapp.docx4java。org/OnlineDemo/PartsList。html 然后单击进入 /ppt/diagrams 部分。

还有一个文档 Creating SmartArt with docx4j,但请注意,这是一个高级主题(大部分内容是您自己完成的)。

@Shinbop,

我已观察到您的要求,建议您尝试使用最新的 Aspose.Slides for .NET 18.11 使用 valid Aspose.Slides license while using API. If you use API without license, it shall pose certain restrictions including limited text extraction from shapes inside presentation. You can please visit this official documentation section link SmartArt 形状。

我在 Aspose 担任支持开发人员/传播者。