Browse our Products

Aspose.Slides for CPP 20.7 Release Notes

Supported platforms

  • Aspose.Slides for C++ for Windows (Microsoft Visual C++).
  • Aspose.Slides for C++ for Linux (Clang).

New Features and Enhancements

KeySummaryCategory
SLIDESNET-41954Convert Mathematival Text to MathML FormatFeature
SLIDESNET-38137Extract equation from ppt to LaTeXFeature
SLIDESNET-34154Support for rotation options for line shapeFeature
SLIDESNET-41947SVG image rendered as PNG image in generated PDFFeature
SLIDESNET-41591Automatic wrapped text exported with line breaks in PDFEnhancement

Other Improvements and Changes

KeySummaryCategory
SLIDESCPP-2483Improve thumbnails rendering quality (v20.7)Enhancement
SLIDESCPP-2408Use Aspose.Slides for .NET 20.7 featuresEnhancement

Public API Changes

Exporting mathematical equations to MathML format

Methods IMathParagraph::WriteAsMathMl() and IMathBlock::WriteAsMathMl() have been added. You can use them to export a mathematical paragraph or block to MathML format. The presentation MathML markup is used.

using namespace System;
using namespace Aspose::Slides;

auto pres = MakeObject<Presentation>();
auto autoShape = pres->get_Slides()->idx_get(0)->get_Shapes()->AddMathShape(0.0f, 0.0f, 500.0f, 50.0f);
auto portion = autoShape->get_TextFrame()->get_Paragraphs()->idx_get(0)->get_Portions()->idx_get(0);
auto mathParagraph = (DynamicCast<MathPortion>(portion))->get_MathParagraph();

mathParagraph->Add(MakeObject<MathematicalText>(u"a")->SetSuperscript(u"2")->
    Join(u"+")->
    Join(MakeObject<MathematicalText>(u"b")->SetSuperscript(u"2"))->
    Join(u"=")->
    Join(MakeObject<MathematicalText>(u"c")->SetSuperscript(u"2")));

auto stream = MakeObject<IO::FileStream>(u"mathml.xml", IO::FileMode::Create);
mathParagraph->WriteAsMathMl(stream);
stream->Close();

Contents of the resulting file:

<math display='block' xmlns="http://www.w3.org/1998/Math/MathML">
    <mrow>
        <msup>
            <mi>a</mi>
            <mn>2</mn>
        </msup>
        <mo>+</mo>
        <msup>
            <mi>b</mi>
            <mn>2</mn>
        </msup>
        <mo>=</mo>
        <msup>
            <mi>c</mi>
            <mn>2</mn>
        </msup>
    </mrow>
</math>