Aspose.Slides for CPP 20.1 Release Notes

Supported Platforms

  • Aspose.Slides for C++ for Windows (Microsoft Visual C++)
  • Aspose.Slides for C++ for Linux (Clang)
KeySummaryCategory
SLIDESCPP-2173Use Aspose.Slides for .NET 20.1 featuresFeature
SLIDESNET-41387Changing default font when saving presentationFeature
SLIDESNET-41601Support of SHA1/1K checksum type for ODP/OTP presentationsEnhancement
SLIDESNET-41605Support of SHA1 key generation algorithm for ODP/OTP presentationsEnhancement
SLIDESNET-41372Descriptive exception message when opening password-protected ODP/OTP presentationsEnhancement
SLIDESCPP-2124ArgumentException on exporting ODP to PPTXBug

Public API Changes

ISaveOptions::set_DefaultRegularFont() and ISaveOptions::get_DefaultRegularFont() methods have been added

A new methods set_DefaultRegularFont()  and get_DefaultRegularFont() have been added to ISaveOptions interface and SaveOptions abstract class. These methods allow to get or set the default font used instead of all missing fonts during saving presentations to different formats without reloading the presentations with different LoadOptions.

The code snippet below demonstrates saving presentation to Html and Pdf with different default regular font.

System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"SomePresentation.pptx");

System::SharedPtr<HtmlOptions> htmlOpts = System::MakeObject<HtmlOptions>();
htmlOpts->set_DefaultRegularFont(u"Arial Black");
pres->Save(u"SomePresentation-out-ArialBlack.html", Aspose::Slides::Export::SaveFormat::Html, htmlOpts);
htmlOpts->set_DefaultRegularFont(u"Lucida Console");
pres->Save(u"Somepresentation-out-LucidaConsole.html", Aspose::Slides::Export::SaveFormat::Html, htmlOpts);

System::SharedPtr<PdfOptions> pdfOpts = System::MakeObject<PdfOptions>();
pdfOpts->set_DefaultRegularFont(u"Arial Black");
pres->Save(u"SomePresentation-out-ArialBlack.pdf", Aspose::Slides::Export::SaveFormat::Pdf, pdfOpts);