Mac developers, elevate your presentation development experience with Aspose.Slides for C++ 24.7. This update incorporates innovative features and addresses minor bugs to equip you to create impactful presentations on macOS.
Easily Embed Files in PDFs on Apple Mac
Insert additional files into the exported PDF documents and boost your presentations with valuable context using this C++ presentations API version. 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*
Refined Placeholder Management
Inject various types of placeholders, such as text, pictures, charts, tables, smart art, vertical content, and more into the master and layout slides of your presentations on macOS-powered machines. The following code snippet demonstrates adding placeholders to a layout slide using the new ILayoutSlide::get_PlaceholderManager()
property.
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*
File Security Improvements
Aspose.Slides for C++ 24.7 lets you remove embedded binary data (VBA Projects, OLE Objects, ActiveX Controls) when loading PowerPoint presentations to beef up security. Check out the following code sample to learn how to use this feature in your C++ apps on macOS.
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*
More Highlights
- Manage Password-Protected Presentations: Load password-protected presentations efficiently using the latest version of the C++ library.
- Take Care of The Comment Pages: Slide numbering now excludes comment pages precisely and ensures accurate presentation flow.
- Implement .NET 24.7 Features: Use the 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.