News Category

Spire.Presentation for Java 4.11.7 supports adding math equations and checking whether shape contains math equations

2021-11-30 07:49:07

We are glad to announce the release of Spire.Presentation for Java 4.11.7. This version supports adding math equations and checking whether shape contains math equations. In addition, it enhances the conversion from PowerPoint to images, PowerPoint to PDF, it also fixes some known issues like the settings for chart legend "isOverlay" property didn't make effect. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-1719 Supports adding math equations and checking whether shape contains math equations.
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 = 0; i<ppt.getSlides().get(0).getShapes().getCount(); i++)
{
    //Check whether shape contains math equations
    boolean containMathEquation = ((IAutoShape)ppt.getSlides().get(0).getShapes().get(i)).isContainMathEquation();
}
ppt.saveToFile("output.pptx", FileFormat.PPTX_2013);
ppt.dispose();
Bug SPIREPPT-1716 Fixes the issue that the settings for chart legend "isOverlay" property didn't make effect.
Bug SPIREPPT-1718 Fixes the issue that the isNoFill() and getAlignment() methods returned incorrect values.
Bug SPIREPPT-1725 SPIREPPT-1736
SPIREPPT-1749
Fixes the issue that the content was incorrect when converting PPT shape to image.
Bug SPIREPPT-1754 Fixes the issue that the animation effect was modified after copying a slide.
Bug SPIREPPT-1767 Fixes the issue that the content was wrong when converting PPT files to PDF in multi threadings.
Click the link to download Spire.Presentation for Java 4.11.7: