Aspose.Slides for PHP via Java 23.6 Release Notes

SLIDESPHP-29Use Aspose.Slides for Java 23.6 featuresEnhancement

Public API Changes

ILoadOptions.setDefaultTextLanguage and ILoadOptions.getDefaultTextLanguage methods have been added

New setDefaultTextLanguage() and getDefaultTextLanguage() methods have been added to ILoadOptions interface and LoadOptions class. It represents the default language for presentation text.

The example below demonstrates using load options to define the default text culture:

// Use load options to define the default text culture
$loadOptions = new LoadOptions();
$pres = new Presentation($loadOptions);
// Add new rectangle shape with text
$shp = $pres->getSlides()->get_Item(0)->getShapes()->addAutoShape(ShapeType::Rectangle, 50, 50, 150, 50);
$shp->getTextFrame()->setText("New Text");
// Check the first portion language
echo $shp->getTextFrame()->getParagraphs()->get_Item(0)->getPortions()->get_Item(0)->getPortionFormat()->getLanguageId();