Browse our Products
Aspose.Slides for Python 22.8 Release Notes
This page contains release notes for Aspose.Slides for Python via .NET 22.8
Key | Summary | Category | Related Documentation |
---|---|---|---|
SLIDESPYNET-34 | Use Aspose.Slides for Net 22.8 features | Enhancement |
Public API Changes
Presentation Slide Show Setup Settings support
We implemented support for Presentation Slide Show Settings.
These are the relevant classes and properties:
- Presentation.slide_show_settings property - allows you to specify the slide show settings for a presentation.
- SlideShowSettings class - represents the slide show settings for the presentation. It provides these properties:
- BrowsedAtKiosk class - represents the Browsed at a kiosk (full screen) parameter.
- BrowsedByIndividual class - represents the Browsed by individual (window) parameter.
- PresentedBySpeaker class - represents the Presented by a speaker (full screen) parameter.
- SlidesRange class - represents the slides range.
This Python code shows you how to set the Presented by a speaker parameter for a slide show:
import aspose.slides as slides
with slides.Presentation() as pres:
pres.slide_show_settings.slide_show_type = slides.PresentedBySpeaker()
pres.save("pres.pptx", slides.export.SaveFormat.PPTX)
Browsed by individual parameter:
import aspose.slides as slides
with slides.Presentation() as pres:
browsedByIndividual = slides.BrowsedByIndividual()
browsedByIndividual.show_scrollbar = True
pres.slide_show_settings.slide_show_type = browsedByIndividual
pres.save("pres.pptx", slides.export.SaveFormat.PPTX)
Animation Effect.sound property added
Support for Embedded sound effect has been implemented through the Effect.sound property.
import aspose.slides as slides
with slides.Presentation("demo.pptx") as presentation:
slide = presentation.slides[0]
# Gets the effects sequence for the slide
effectsSequence = slide.timeline.main_sequence
for effect in effectsSequence:
if effect.sound == None:
continue
# Extracts the effect sound in byte array
audio = effect.sound.binary_data