Aspose.Slides for PHP via Java 22.8 Release Notes
Contents
[
Hide
]
This page contains release notes for Aspose.Slides for PHP via Java
Key | Summary | Category |
---|---|---|
SLIDESPHP-9 | Use Aspose.Slides for Java 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.SlideShowSettings 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 PHP code shows you how to set the Presented by a speaker parameter for a slide show:
$pres = new Presentation();
$pres->getSlideShowSettings()->setSlideShowType(new PresentedBySpeaker());
$pres->save("pres.pptx", SaveFormat::Pptx);
Browsed by individual parameter:
$pres = new Presentation();
$browsedByIndividual = new BrowsedByIndividual();
$browsedByIndividual->setShowScrollbar(true);
$pres->getSlideShowSettings()->setSlideShowType($browsedByIndividual);
$pres->save("pres.pptx", SaveFormat::Pptx);
Animation Effect.Sound property added
Support for Embedded sound effect has been implemented through Effect.getSound() and Effect.setSound() methods.
$presentation = new Presentation("demo.pptx");
$slide = $presentation->getSlides()->get_Item(0);
// Gets the effects sequence for the slide
$effectsSequence = $slide->getTimeline()->getMainSequence();
for ($i = 0; $i < java_values($effectsSequence->getCount()); $i++)
{
$effect = $effectsSequence->get_Item($i);
if (is_null($effect->getSound()))
continue;
// Extracts the effect sound in byte array
$audio = $effect->getSound()->getBinaryData();
}