Watermark Picture in PowerPoint with Java REST API

This article guides on how to add Watermark Picture in PowerPoint with Java REST API. You will learn how to make a photo a watermark in PowerPoint with Java REST Interface using a Java-based SDK. It will share the details to customize the picture before adding it as a watermark to the presentation.

Prerequisite

Steps to Insert Image Watermark in PowerPoint with Java REST API

  1. Initialize the Aspose SlidesApi with client credentials
  2. Upload the presentation file to the server using the UploadFile() method
  3. Read the image data that will be used for the watermark into a byte array
  4. Set up the image frame that will hold the watermark image using the PictureFrame class
  5. Add the image as a watermark to the presentation using the CreateImageWatermark() method
  6. Download the modified presentation with the watermark added with the DownloadFile() method
  7. Save the updated presentation locally

These steps describe how to make a picture a watermark in PowerPoint with Java RESTful Service. Initialize the SlidesApi object, upload the presentation to the server, and read the watermark image into a byte array. Set up the PictureFrame object to set the watermark parameters and add it to the presentation using the CreateImageWatermark() method.

Code to Add Image Watermark in PowerPoint with Java Java-based API

This code demonstrates how to make an image a watermark in PowerPoint with Java Java-based API. Configure the picture frame to set the watermark image position from the top-left corner, its size and fill format. You can also set DPI, crop pictures, tile offset and scale, and SVG data.

This article has taught us how to watermark an image in PowerPoint with Java Low Code API. To remove a watermark from a presentation, refer to the article Remove Watermark from Presentation with Java REST API.

 English