Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.Slides for PHP via Java 24.8

Download  Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 26.89MB
  • Date Added:
  • 13/8/2024

Description

It contains Aspose.Slides for PHP via Java 24.8 release.

File Details

Add Tiled Picture Fills to Presentations

Aspose.Slides for PHP via Java 24.8 helps you create visually stunning presentations by applying tiled picture fills to shapes or backgrounds. Apply customized effects by controlling the offset, scale, alignment, and flipping of the tile in your cross-platform apps.

Code example:


var pres = new aspose.slides.Presentation();

var firstSlide = pres.getSlides().get_Item(0);

var newImage = aspose.slides.Images.fromFile("image.png");
var ppImage = pres.getImages().addImage(newImage);
newImage.dispose();

// Adds the new Rectangle shape
var newShape = firstSlide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 0, 0, 350, 350);

// Sets the fill type of the new shape to Picture
newShape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Picture));

// Sets the shape's fill image
var pictureFillFormat = newShape.getFillFormat().getPictureFillFormat();
pictureFillFormat.getPicture().setImage(ppImage);

// Sets the picture fill mode to Tile and changes the properties
pictureFillFormat.setPictureFillMode(java.newByte(aspose.slides.PictureFillMode.Tile));
pictureFillFormat.setTileOffsetX(-275);
pictureFillFormat.setTileOffsetY(-247);
pictureFillFormat.setTileScaleX(25);
pictureFillFormat.setTileScaleY(15);
pictureFillFormat.setTileAlignment(java.newByte(aspose.slides.RectangleAlignment.BottomRight));
pictureFillFormat.setTileFlip(aspose.slides.TileFlip.FlipBoth);

pres.save("Tile.pptx", aspose.slides.SaveFormat.Pptx);

Source*

Access Font Data in PHP Apps

The latest PowerPoint API for PHP release offers precise control over fonts used in your presentations. Effortlessly retrieve font byte data and determine embedding levels to optimize font usage with this release.

Code sample (extracting binary font data):


var pres = new aspose.slides.Presentation ("Presentation.pptx");

// Retrieve all fonts used in the presentation
var fonts = pres.getFontsManager().getFonts();

// Get the byte array representing the regular style of the first font in the presentation
var fontBytes = pres.getFontsManager().getFontBytes(fonts[0], aspose.slides.FontStyle.Regular);

pres.dispose();

Source*

Code sample (extracting font embedding level):


var pres = new aspose.slides.Presentation("Presentation.pptx");

// Retrieve all fonts used in the presentation
var fontDatas = pres.getFontsManager().getFonts();

// Get the byte array representing the regular style of the first font in the presentation
var bytes = pres.getFontsManager().getFontBytes(fontDatas[0], aspose.slides.FontStyle.Regular);

// Create a stream and pass it to readBytesFromStream
var byteStream = Readable.from([Buffer.from(bytes)]);
aspose.slides.readBytesFromStream(byteStream, (fontArray) => {
    // Determine the embedding level of the font
    var embeddingLevel = pres.getFontsManager().getFontEmbeddingLevel(fontArray, fontDatas[0].getFontName());
    console.log(embeddingLevel);
});

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.8 Release Notes.

 English