Browse our Products

Aspose.Slides for Python via .NET 24.7 Release Notes

New Features and Enhancements

KeySummaryCategoryRelated Documentation
SLIDESNET-44507Embedding files in exported PDF documentsFeature
SLIDESNET-44556Add Chart placeholder to master or layout slideFeaturehttps://docs.aspose.com/slides/python-net/slide-layout/
SLIDESNET-44104Deleting OLENative compressed objects from PPTFeaturehttps://docs.aspose.com/slides/python-net/open-presentation/
SLIDESNET-44521PptCorruptFileException occurs when loading the password-protected presentationEnhancementhttps://docs.aspose.com/slides/python-net/password-protected-presentation/
SLIDESNET-44506Slide number is counted on the comment pageEnhancementhttps://docs.aspose.com/slides/python-net/convert-powerpoint-to-pdf/

Other Improvements and Changes

KeySummaryCategoryRelated Documentation
SLIDESPYNET-173Use Aspose.Slides for Net 24.7 featuresEnhancementhttps://releases.aspose.com/slides/net/release-notes/2024/aspose-slides-for-net-24-7-release-notes/
SLIDESPYNET-113Arrow appears when exporting a presentation to PDF/SVGBug
SLIDESPYNET-219Pyinstaller 6 macOS app bundle crashBug

Public API Changes

ILoadOptions.delete_embedded_binary_objects property has been added

A new delete_embedded_binary_objects property has been added to the ILoadOptions interface and LoadOptions class. It allows you to remove embedded binary data from a presentation file while loading.

The possible binary data in the presentation:

  • VBA Project
  • OLE Object embedded data
  • ActiveX Control binary data

This property can be useful for removing malicious binary content. The following code sample shows how to load the presentation and save it without malware content:

import aspose.slides as slides

load_options = slides.LoadOptions()
load_options.delete_embedded_binary_objects = True

with slides.Presentation("malware.ppt", loadOptions) as pres:
    pres.save("clean.ppt", slides.export.SaveFormat.PPT)

IPdfOptions.include_ole_data property has been added

A new include_ole_data property has been added to the IPdfOptions interface and the PdfOptions class. This property allows you to export files embedded in the presentation to PDF format.

The following example shows how to export a presentation to PDF, including embedded files:

import aspose.slides as slides

with slides.Presentation("pres.pptx") as pres:
    options = slides.export.PdfOptions()
    options.include_ole_data = True
    pres.save("pres.pdf", slides.export.SaveFormat.PDF, options)

ILayoutPlaceholderManager interface and LayoutPlaceholderManager class have been added

The new interface ILayoutPlaceholderManager represents methods that can be used to add a new placeholder to the Layout slide.

The following types of placeholders can be added:

  • Content
  • Vertical Content
  • Text
  • Vertical Text
  • Picture
  • Chart
  • Table
  • SmartArt
  • Media
  • Online Image

ILayoutSlide.PlaceholderManager property has been added

A new placeholder_manager property has been added to the ILayoutSlide interface and the LayoutSlide class. It allows access to a placeholder manager of the Layout slide.

The following code sample shows how to add new placeholder shapes to the Layout slide:

import aspose.slides as slides

with slides.Presentation() as pres:
    # Getting the Blank layout slide
    layout = pres.layout_slides.get_by_type(slides.SlideLayoutType.BLANK)

    # Getting the placeholder manager of the layout slide
    placeholder_manager = layout.placeholder_manager

    # Adding different placeholders to the Blank layout slide
    placeholder_manager.add_content_placeholder(10, 10, 300, 200)
    placeholder_manager.add_vertical_text_placeholder(350, 10, 200, 300)
    placeholder_manager.add_chart_placeholder(10, 350, 300, 300)
    placeholder_manager.add_table_placeholder(350, 350, 300, 200)

    # Adding the new slide with Blank layout
    new_slide = pres.slides.add_empty_slide(layout)
    pres.save("placeholders.pptx", slides.export.SaveFormat.PPTX)