Unleash the full potential of presentations with the latest update to Aspose.Slides for C++ on Windows OS. Version 24.7 empowers developers with innovative features and enhancements to simplify presentation manipulation.
Effortless File Embedding in PDFs
Integrate additional files into exported PDF documents and enrich your presentations with valuable context using the latest C++ presentations API release. This C++ code example highlights the feature usage.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<PdfOptions> options = System::MakeObject<PdfOptions>();
options->set_IncludeOleData(true);
pres->Save(u"pres.pdf", Aspose::Slides::Export::SaveFormat::Pdf, options);
Source*
Fine-tuned Placeholder Management
Introduce greater flexibility to your PowerPoint presentations by adding various placeholder types, such as text, picture, chart, table, smart art, vertical content, and more directly to master and layout slides on Windows-powered machines. The following code snippet illustrates how to use the newly added ILayoutSlide::get_PlaceholderManager()
property to add placeholders to a layout slide.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
// Getting the Blank layout slide
System::SharedPtr<ILayoutSlide> layout = pres->get_LayoutSlides()->GetByType(Aspose::Slides::SlideLayoutType::Blank);
// Getting the placeholder manager of the layout slide
System::SharedPtr<ILayoutPlaceholderManager> placeholderManager = layout->get_PlaceholderManager();
// Adding different placeholders to the Blank layout slide
placeholderManager->AddContentPlaceholder(10.0f, 10.0f, 300.0f, 200.0f);
placeholderManager->AddVerticalTextPlaceholder(350.0f, 10.0f, 200.0f, 300.0f);
placeholderManager->AddChartPlaceholder(10.0f, 350.0f, 300.0f, 300.0f);
placeholderManager->AddTablePlaceholder(350.0f, 350.0f, 300.0f, 200.0f);
// Adding the new slide with Blank layout
System::SharedPtr<ISlide> newSlide = pres->get_Slides()->AddEmptySlide(layout);
pres->Save(u"placeholders.pptx", Aspose::Slides::Export::SaveFormat::Pptx);
Source*
Strengthen Security
Aspose.Slides for C++ 24.7 allows you to remove embedded binary data (VBA Projects, OLE Objects, ActiveX Controls) during presentation loading to beef up security. Check out the following code sample to learn how to use this feature in your C++ apps.
System::SharedPtr<LoadOptions> loadOptions = System::MakeObject<LoadOptions>();
loadOptions->set_DeleteEmbeddedBinaryObjects(true);
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"malware.ppt", loadOptions);
pres->Save(u"clean.ppt", Aspose::Slides::Export::SaveFormat::Ppt);
Source*
Other Highlights
- Improved Password-Protected Presentation Handling: Load password-protected presentations with greater efficiency with the latest C++ library version.
- Manage Comment Pages: Slide numbering now accurately excludes comment pages to ensure precise presentation flow.
- Leverage .NET 24.7 Features: You can now benefit from advancements introduced in the latest Aspose.Slides for .NET version.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for C++ 24.7 Release Notes.