Add a Text Watermark

Introduction

Using Aspose.Slides Cloud API, you have the capability to incorporate a text watermark into your slides within a PowerPoint presentation to serve a multitude of purposes. These purposes may include asserting authorship, developing a distinctive corporate presentation style, or designating the confidential nature of information. The watermark, in most cases, is a composition of either text or an image strategically positioned either in the background or foreground of the slide, and often has low transparency.

The following methods are for adding text watermarks to your presentation slides. You can specify many options for a watermark such as font height, font name, font color, text rotation, 3D effects, and many more.

CreateWatermark

API Information

API Type Description Resource
/slides/{name}/watermark POST Adds a text watermark to each slide of the presentation saved to storage. CreateWatermark

Request Parameters

Name Type Location Required Description
name string path true The presentation file name.
shape Shape body false The data transfer object with shape properties.
fontHeight double query false The font size for the text.
text string query false The watermark text.
fontName string query false The font name for the text.
fontColor string query false The font color for the text.
password string header false The password to open the presentation.
folder string query false The folder where the presentation file is located.
storage string query false The storage where the presentation file is located.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Add a text watermark with the following options to slides in the MyPresentation.pptx document saved to the storage:

  • text: “This presentation was created by Aspose.”
  • font name: Arial
  • font height: 40 pt
  • font color: #dddddd

SDK Solutions

Result:

Screenshot of the text watermark.

CreateWatermarkOnline

API Information

API Type Description Resource
/slides/watermark POST Adds a text watermark to each slide of the presentation saved to a local file. CreateWatermarkOnline

Request Parameters

Name Type Location Required Description
document file form data true The presentation file.
shape Shape body false The data transfer object with shape properties.
fontHeight double query false The font size for the text.
text string query false The watermark text.
fontName string query false The font name for the text.
fontColor string query false The font color for the text.
password string header false The password to open the presentation.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Add a text watermark with the following options to slides in the input.pptx document saved to a local file:

  • text: “Powered by Aspose.”
  • text rotation: 45°

SDK Solutions

Result:

Screenshot of the text watermark.

SDKs

Check Available SDKs to learn how to add an SDK to your project.