Set Protection Properties

Introduction

The following methods allow you to set protection properties for a PowerPoint presentation. You can set passwords to read/write the presentation, or set read-only recommendation.

SetProtection

API Information

API Type Description Resource
/slides/{name}/protection PUT Sets the protection properties for a presentation saved to the storage. SetProtection

Request Parameters

Name Type Location Required Description
name string path true The name of the presentation file.
dto ProtectionProperties body true The protection properties for the presentation.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.

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

Examples

Specify the string MyPassword to protect the document MyPresentation.pptx to read and set the recommendation to read-only for the presentation.

cURL Solution

SDK Solutions

SetProtectionOnline

API Information

API Type Description Resource
/slides/protection PUT Sets the protection properties for a presentation saved to a local file. SetProtectionOnline

Request Parameters

Name Type Location Required Description
document file formData true The presentation file.
dto ProtectionProperties body true The protection properties for the presentation.
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

Specify the string MyPassword to protect the MyPresentation.pptx document saved to a local file from being modified.

cURL Solution

SDK Solutions

SDKs

The Aspose.Slides for Cloud SDKs can be downloaded from the following page: Available SDKs.