Unlock the full potential of presentations within your Python applications with the latest update to Aspose.Slides for Python via .NET (v24.7, Win64). This release equips developers with new features, enhanced functionalities, and essential security improvements.
Embed Files in Exported PDFs
Seamlessly embed additional files into your exported PDF documents and enrich your presentations with valuable context. Here is how to use this feature in Python.
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)
Source*
Empowered Security
Address potential security vulnerabilities efficiently by removing embedded binary data (VBA, OLE objects, ActiveX controls) during presentation loading on 64-bit Windows machines, as illustrated in this code example.
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)
Source*
Improved Password-protected Presentations
Developers can experience smoother handling of password-protected presentations with Aspose.Slides for Python via .NET 24.7 and ensure reliable access and manipulation.
Accurate Slide Numbering
Eliminate confusion with precise slide number counting, by excluding comment pages for accurate presentation navigation on Windows x64 systems.
Inject Placeholders on Layout Slides
You can programmatically add different types of placeholders to your layout slides, including charts, content, text, pictures, tables, and more. The following code example shows how to add various new placeholder shapes to the layout slide in Python.
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)
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for Python via .NET 24.7 Release Notes.