Upgrade to A Modern API
Get an improved developer experience with a modern API that replaces legacy java.awt dependencies gradually. Several new enums and classes are introduced in the upgraded API, such as IImage, ImageFormat, and Images, which enable refined image handling workflows.
ZIP64 Support for PPTX
With the addition of the PptxOptions.Zip64Mode property in version 24.4 of the PHP presentation API, users can create presentations larger than 4GB by utilizing the ZIP64 format. Please refer to the following PHP code example to learn more:
$pres = new Presentation("demo.pptx");
$pptxOptions = new PptxOptions();
$pptxOptions->setZip64Mode(Zip64Mode::Always);
$pres->save("demo-zip64.pptx", SaveFormat::Pptx, $pptxOptions);
$pres->dispose();
Source*
Advanced PDF Saving Control
PHP developers can now utilize the PdfOptions.RasterizeUnsupportedFontStyles property to improve the quality of text in PDFs by rasterizing fonts stylized as ‘bold’ as bitmaps. The following sample code showcases how to use this feature:
$pres = new Presentation();
$pdfOptions = new PdfOptions();
$pdfOptions->setRasterizeUnsupportedFontStyles(true);
$pres->save("pres.pdf", SaveFormat::Pdf, $pdfOptions);
$pres->dispose();
Source*
ZoomObject.Image Property Replaced
Aspose.Slides for PHP via Java 24.4 replaces the ZoomObject.Image property with ZoomObject.ZoomImage. You can use the new property to set the image for zoom frames, as illustrated in the following coding example.
$pres = new Presentation("pres.pptx");
$zoomFrame = $pres->getSlides()->get_Item(0)->getShapes()->addZoomFrame(150, 20, 50, 50, $pres->getSlides()->get_Item(1));
$image = $pres->getImages()->addImage(Images::fromFile("image.png"));
$zoomFrame->setZoomImage($image);
$pres->dispose();
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for PHP via Java 24.4 Release Notes.