Browse our Products

Aspose.Slides for PHP via Java 22.8 Release Notes

KeySummaryCategory
SLIDESPHP-9Use Aspose.Slides for Java 22.8 featuresEnhancement

Public API Changes

Presentation Slide Show Setup Settings support

We implemented support for Presentation Slide Show Settings.

Slide Show Settings

These are the relevant classes and properties:

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();
}