Browse our Products Toggle navigation
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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Aspose.Slides for Node.js via Java 24.8 helps you create captivating presentations with the ability to define how a picture is tiled within a shape or background. You can control offset, scale, alignment, and flipping for a unique visual effect.
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*
Gain deeper insights into fonts used in presentations with the Node.js PowerPoint API. It enables retrieving font byte data and determining the embedding level for more control over font usage.
Code example (retrieving 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();
Code example (retrieving 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); });
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for Node.js via Java 24.8 Release Notes.