Math Equations to LaTeX Conversion
Developers can generate presentations that seamlessly integrate complex mathematical notation. Aspose.Slides for C++ 24.2 enables effortless conversion of math equations within presentations to LaTeX format on Linux.
Include Slide Notes in HTML5 Documents
Easily facilitate collaboration and feedback with the inclusion of slide notes in exported HTML5 documents using this update of the presentation manipulation API.
Optimized Handling of Corrupted PPTX Documents
This release ensures a more robust development experience with enhanced handling of the corrupted PPTX files, preventing exceptions, and providing informative error messages to aid troubleshooting.
Manage OLE Objects
You can better manage the OLE objects within C++ presentations and accurately display the preview image for OLE objects to enhance the visual fidelity of exported PowerPoint documents.
Converting Math Equations to LaTex
The following code sample showcases how to convert math equations within a PowerPoint presentation to LaTex format using the IMathParagraph::ToLatex()
method:
auto pres = System::MakeObject<Presentation>();
System::SharedPtr<ISlide> slide = pres->get_Slide(0);
System::SharedPtr<IAutoShape> shape = slide->get_Shapes()->AddMathShape(50.0f, 50.0f, 200.0f, 200.0f);
System::SharedPtr<IMathPortion> mathPortion = System::AsCast<Aspose::Slides::MathText::IMathPortion>(
shape->get_TextFrame()->get_Paragraph(0)->get_Portion(0));
System::SharedPtr<IMathParagraph> mathParagraph = mathPortion->get_MathParagraph();
mathParagraph->Add(System::MakeObject<MathematicalText>(u"a")->
Join(u"+")->
Join(System::MakeObject<MathematicalText>(u"b")->
Join(u"=")->
Join(System::MakeObject<MathematicalText>(u"c"))));
System::String mathLatex = mathParagraph->ToLatex();
System::Console::WriteLine(mathLatex);
Source*
This sample code highlights how you can configure presentation conversions with comments added in Aspose.Slides for C++ 24.2 using the newly introduced IHtml5Options::set_NotesCommentsLayouting()
method:
auto pres = System::MakeObject<Presentation>(u"test.pptx");
auto html5Options = System::MakeObject<Html5Options>();
html5Options->set_OutputPath(u"test_pptx");
auto notesCommentsLayouting = System::MakeObject<NotesCommentsLayoutingOptions>();
notesCommentsLayouting->set_NotesPosition(Aspose::Slides::Export::NotesPositions::BottomTruncated);
html5Options->set_NotesCommentsLayouting(notesCommentsLayouting);
pres->Save(u"index.html", Aspose::Slides::Export::SaveFormat::Html5, html5Options);
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for C++ 24.2 Release Notes.