Spire.Presentation for Java 4.11.7已发布。该版本支持添加数学公式和检测shape是否包含数学公式,并且增强了PPT到图片,PPT到PDF的转换功能,还修复了图表图例”是否重叠“属性设置不生效等已知问题。详情请阅读以下内容。 新功能: 支持添加数学公式和检测shape是否包含数学公式 Presentation ppt = new Presentation(); ppt.loadFromFile("input.pptx"); String latexMathCode = "x^{2}+\\sqrt{x^{2}+1}=2"; IAutoShape shape = ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE, new Rectangle2D.Float(30, 100, 400, 30)); shape.getTextFrame().getParagraphs().clear(); //Add math equation ParagraphEx tp = shape.getTextFrame().getParagraphs().addParagraphFromLatexMathCode(latexMathCode);for (int i =…