Browse our Products

Aspose.Slides for Android via Java 24.2 Release Notes

KeySummaryCategory
SLIDESANDROID-449Use Aspose.Slides for Java 24.2 featuresEnhancement

Public API Changes

IMathParagraph.toLatex method added

Added a new method IMathParagraph.toLatex, which allows to convert math text to Latex format.

Example:

Presentation pres = new Presentation();
try {
    ISlide slide = pres.getSlides().get_Item(0);
    IAutoShape shape = slide.getShapes().addMathShape(50, 50, 200, 200);
    IMathParagraph mathParagraph = ((MathPortion)shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0)).getMathParagraph();
    mathParagraph.add(new MathematicalText("a").join("+").join(new MathematicalText("b").join("=").join(new MathematicalText("c"))));
    String mathLatex = mathParagraph.toLatex();

    System.out.println(mathLatex);
} finally {
    if (pres != null) pres.dispose();
}

The output is:

\[
a+b=c
\]

Html5Options.NotesCommentsLayouting

Added a new HTML5 export options parameter Html5Options.NotesCommentsLayouting that allows you to convert a presentation with comments.

Example:

Presentation pres = new Presentation("test.pptx");
try {
    NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
    notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
    Html5Options html5Options = new Html5Options();
    html5Options.setNotesCommentsLayouting(notesCommentsLayoutingOptions);
    html5Options.setOutputPath("test_pptx");
            
    pres.save("index.html", SaveFormat.Html5, html5Options);
} finally {
    if (pres != null) pres.dispose();
}