Linux developers, manage your presentation development workflows with Aspose.Slides for C++ 24.7. This update introduces valuable features and resolves minor bugs to empower you in crafting visually appealing presentations.
Conveniently Embed Files in PDFs
Incorporate additional files into your exported PDFs and reinforce your presentations with valuable context using the latest release of the C++ presentations API. 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*
Supercharged Placeholder Management
Add more flexibility to your presentations by inserting different placeholder types, such as text, picture, chart, table, smart art, vertical content, and more directly into master and layout slides on Linux-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*
Boost File Security
Aspose.Slides for C++ 24.7 enables removing embedded binary data (VBA Projects, OLE Objects, ActiveX Controls) while loading PowerPoint presentations to boost 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
- Enhanced Password-Protected Presentation Management: Load password-protected presentations more efficiently using the latest C++ library version.
- Handle Comment Pages: Slide numbering now excludes comment pages precisely and ascertains accurate presentation flow.
- Utilize .NET 24.7 Features: Benefit from 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.