MacOS developers, rejoice! Upgrade your PowerPoint manipulation solutions with the latest features provided in Aspose.Slides for C++ 24.8 release.
Enhance Your Presentations with Tiled Fills
This version of the C++ presentation processing API boosts the visual appeal of your PowerPoint documents with the capability to add picture fills for shapes and backgrounds.
Code sample showing how to add a rectangle shape with a tiled picture fill.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
System::SharedPtr<ISlide> firstSlide = pres->get_Slide(0);
System::SharedPtr<IImage> newImage = Images::FromFile(u"image.png");
System::SharedPtr<IPPImage> ppImage = pres->get_Images()->AddImage(newImage);
// Adds the new Rectangle shape
auto newShape = firstSlide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 0.0f, 0.0f, 350.0f, 350.0f);
// Sets the fill type of the new shape to Picture
newShape->get_FillFormat()->set_FillType(FillType::Picture);
// Sets the shape's fill image
System::SharedPtr<IPictureFillFormat> pictureFillFormat = newShape->get_FillFormat()->get_PictureFillFormat();
pictureFillFormat->get_Picture()->set_Image(ppImage);
// Sets the picture fill mode to Tile and changes the properties
pictureFillFormat->set_PictureFillMode(PictureFillMode::Tile);
pictureFillFormat->set_TileOffsetX(-275.0f);
pictureFillFormat->set_TileOffsetY(-247.0f);
pictureFillFormat->set_TileScaleX(25.0f);
pictureFillFormat->set_TileScaleY(15.0f);
pictureFillFormat->set_TileAlignment(RectangleAlignment::BottomRight);
pictureFillFormat->set_TileFlip(TileFlip::FlipBoth);
pres->Save(u"Tile.pptx", SaveFormat::Pptx);
Source*
Refined Font Management
Python developers can make full use of the finer control over fonts in this update and retrieve font data as byte arrays, along with determining the font embedding levels. Additionally, you can identify the restricted fonts in your PowerPoint applications.
Sample code for retrieving font data:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::ArrayPtr<System::SharedPtr<IFontData>> fonts = pres->get_FontsManager()->GetFonts();
System::ArrayPtr<uint8_t> bytes = pres->get_FontsManager()->GetFontBytes(fonts[0], System::Drawing::FontStyle::Regular);
Source*
Sample code to retrieve the font embedding level:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::ArrayPtr<System::SharedPtr<IFontData>> fontDatas = pres->get_FontsManager()->GetFonts();
System::ArrayPtr<uint8_t> bytes = pres->get_FontsManager()->GetFontBytes(fontDatas[0], System::Drawing::FontStyle::Regular);
EmbeddingLevel embeddingLevel = pres->get_FontsManager()->GetFontEmbeddingLevel(bytes, fontDatas[0]->get_FontName());
Source*
Easily Export to MathML on MacOS
Aspose.Slides for C++ 24.8 offers enhanced fidelity of color and font size when exporting presentations as MathML documents.
Updated PDF Documents with Summary Zoom Access
Leverage the Summary Zoom functionality in output PDFs for a smooth viewing experience on MacOS-powered machines.
Our Python library now equips you with excellent collaboration features in the form of displaying comments in the generated HTML5 presentations.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for C++ 24.8 Release Notes.