Browse our Products

Aspose.Slides for C++ 21.9 Release Notes

Supported Platforms

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

New Features and Enhancements

SLIDESNET-38994Getting automatic table cells fill colorFeature
SLIDESNET-40508Slow slide cloning performance in Aspose.SlidesEnhancement
SLIDESNET-42579Getting the number of worksheets in a workbookEnhancement

Other Improvements and Changes

SLIDESCPP-2775Use Aspose.Slides for .NET 21.9 featuresEnhancement
SLIDESCPP-2505Generating the thumbnail of each animation sequence on slideFeature

Public API Changes

HTML5 Export Support

We implemented support for HTML5 Export in Slides (enhanced customizable version of HTML5 Support).

The new Html5 value has been added to SaveFormat enumerations. This value represents the HTML5 format for exporting.

The code snippet below demonstrates the saving presentation in HTML5 operation:

using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;
auto presentation = System::MakeObject<Presentation>(u"SomePresentation.pptx");
presentation->Save(u"index.html", SaveFormat::Html5);

Using the Html5Options configuration, you can export a presentation containing slides transitions, animations, and shapes animations to HTML5:

using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;

auto pres = System::MakeObject<Presentation>(u"demo.pptx");
auto options = System::MakeObject<Html5Options>();
pres->Save(u"demo-animate.html", SaveFormat::Html5, options);

Access to the ChartDataWorksheetCollection has been added

To provide access to worksheets, we added the IChartDataWorksheetCollection interface, ChartDataWorksheetCollection class, and IChartDataWorkbook::get_Worksheets() method.

using namespace Aspose::Slides;
using namespace Aspose::Slides::Charts;

auto pres = System::MakeObject<Presentation>();
auto chart = pres->get_Slides()->idx_get(0)->get_Shapes()->AddChart(ChartType::Pie, 50.0f, 50.0f, 400.0f, 500.0f);

auto workbook = chart->get_ChartData()->get_ChartDataWorkbook();
for (int32_t i = 0; i < workbook->get_Worksheets()->get_Count(); i++)

IAccessiblePVIObject interface has been added

IAccessiblePVIObject interface has been added to Aspose::Slides namespace. It represents a type that can be a source of an effective version of its data.

IAccessiblePVIObject declaration:

/// <summary>
/// Represents a type that can return corresponding effective data with the inheritance applied.
/// </summary>
/// <typeparam name="T">Type of effective data.</typeparam>
template<typename T>
class IAccessiblePVIObject : public virtual System::Object
    /// <summary>
    /// Gets effective data with the inheritance applied.
    /// </summary>
    /// <returns>An effective data object.</returns>
    virtual T GetEffective() = 0;

Currently, all effect types from the Aspose::Slides::Effects namespace implement the IAccessiblePVIObject interface—and this means you can get effective values for effects with styled colors resolved.

This code demonstrates an operation where we added a picture for a slide background, added Duotone effect with styled colors, and then we got the effective duotone colors with which the background will be rendered:

using namespace Aspose::Slides;
using namespace Aspose::Slides::Effects;

auto presentation = System::MakeObject<Presentation>();

auto backgroundImage = presentation->get_Images()->AddImage(System::Drawing::Image::FromFile(u"someimage.png"));

auto background = presentation->get_Slides()->idx_get(0)->get_Background();

auto duotone = presentation->get_Slides()->idx_get(0)->get_Background()->get_FillFormat()->get_PictureFillFormat()->get_Picture()->get_ImageTransform()->AddDuotoneEffect();

auto duotoneEffective = duotone->GetEffective();

System::Console::WriteLine(System::String(u"Duotone effective color1: ") + duotoneEffective->get_Color1());
System::Console::WriteLine(System::String(u"Duotone effective color2: ") + duotoneEffective->get_Color2());