Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Aspose.Slides for C++ 24.6 macOS

Download  Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 169.84MB
  • Date Added:
  • 20/6/2024


It contains Aspose.Slides for C++ 24.6 macOS release.

File Details

Upgrade your macOS-powered C++ PowerPoint applications with Aspose.Slides for C++ 24.6. Incorporate features such as text highlighting and replacement within presentations, improved handling of corrupt PPTX files, and more into your C++ applications.

Text Highlighting in macOS

Augment the appearance of your slides smoothly by highlighting specific text and text patterns using text or regular expressions. The ITextFrame::HighlightText and ITextFrame::HighlightRegex methods introduced in the latest version support this functionality within a TextFrame. This code example showcases how text can be highlighted in a text frame:

  auto presentation = System::MakeObject<Presentation>(u"pres.pptx");

// highlighting all words 'important'
(System::ExplicitCast<Aspose::Slides::AutoShape>(presentation->get_Slide(0)->get_Shape(0)))->get_TextFrame()->HighlightText(u"important", System::Drawing::Color::get_LightBlue());

auto textSearchOptions = System::MakeObject<TextSearchOptions>();

// highlighting all separate 'the' occurrences
(System::ExplicitCast<Aspose::Slides::AutoShape>(presentation->get_Slide(0)->get_Shape(0)))->get_TextFrame()->HighlightText(u"the", System::Drawing::Color::get_Violet(), textSearchOptions, nullptr);

presentation->Save(u"pres-out2.pptx", Aspose::Slides::Export::SaveFormat::Pptx);


Similarly, the following coding sample explains how to highlight text using Regex (regular expression) in a text frame:

auto presentation = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<System::Text::RegularExpressions::Regex> regex = System::MakeObject<System::Text::RegularExpressions::Regex>(u"\\b[^\\s]{10,}\\b");
// highlighting all words with 10 or more characters
(System::ExplicitCast<Aspose::Slides::AutoShape>(presentation->get_Slide(0)->get_Shape(0)))->get_TextFrame()->HighlightRegex(regex, System::Drawing::Color::get_Blue(), nullptr);
presentation->Save(u"SomePresentation-out.pptx", Aspose::Slides::Export::SaveFormat::Pptx);


Text Replacement Made Convenient

Replace text with alternative content for enhanced editing using this release of the C++ PowerPoint presentations library. Please check out the following code example, which illustrates how to replace text in C++:

auto presentation = System::MakeObject<Presentation>(u"pres.pptx");

auto textSearchOptions = System::MakeObject<TextSearchOptions>();

// Replace all separate 'the' occurrences with '***'
(System::ExplicitCast<Aspose::Slides::AutoShape>(presentation->get_Slide(0)->get_Shape(0)))->get_TextFrame()->ReplaceText(u"the", u"***", textSearchOptions, nullptr);

presentation->Save(u"SomePresentation-out2.pptx", Aspose::Slides::Export::SaveFormat::Pptx);


Handle Corrupted PPTX Files Seamlessly

Aspose.Slides for C++ 24.6 brings extended flexibility when loading corrupted PPTX files on macOS, reducing errors and ascertaining an elevated development experience.

Integrate Aspose.Slides for .NET Features

You can now utilize the improvements made in Aspose.Slides for .NET in your C++ apps and get your hands on a more comprehensive feature set.

Find Text Using the ITextSearchOptions Interface

The ITextSearchOptions interface implemented in the C++ presentations library provides options for text search within presentations, slides, or TextFrame on the macOS platform. This sample code demonstrates the feature usage in C++:

auto presentation = System::MakeObject<Presentation>(u"pres.pptx");

auto textSearchOptions = System::MakeObject<TextSearchOptions>();

presentation->ReplaceText(u"the", u"***", textSearchOptions, nullptr);

presentation->Save(u"pres-out.pptx", Aspose::Slides::Export::SaveFormat::Pptx);


Easily Fetch Text Search Results

The newly added IFindResultCallback interface in Aspose.Slides for C++ 24.6 includes a callback method for retrieving search results when working with the text search functionality. The following code example shows how to utilize this feature in C++:

class FindResultCallback : public Aspose::Slides::IFindResultCallback
    void FoundResult(System::SharedPtr<ITextFrame> textFrame, System::String oldText, System::String foundText, int32_t textPosition) override
        //Handling the results...

class Example
    void Execute()
        System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
        System::SharedPtr<FindResultCallback> callback = System::MakeObject<FindResultCallback>();

        // Highlight all words "address". 
        pres->HighlightText(u"address", System::Drawing::Color::get_Yellow(), System::MakeObject<TextSearchOptions>(), callback);

        pres->Save(u"pres-out.pptx", Aspose::Slides::Export::SaveFormat::Pptx);


Public API Changes

Obsolete Interfaces and Classes

The following interfaces and classes have been marked as obsolete and will be removed in version 24.10:

  • ITextHighlightingOptions class
  • TextHighlightingOptions class

Obsolete Methods

Several methods related to text highlighting have been marked as obsolete and will be removed in version 24.10. These include:

  • ITextFrame::HighlightText(System::String text, System::Drawing::Color highlightColor, System::SharedPtr options)
  • ITextFrame::HighlightRegex(System::String regex, System::Drawing::Color highlightColor, System::SharedPtr options)
  • TextFrame::HighlightText(System::String text, System::Drawing::Color highlightColor, System::SharedPtr options)
  • TextFrame::HighlightRegex(System::String regex, System::Drawing::Color highlightColor, System::SharedPtr options)

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for C++ 24.6 Release Notes.