Recommend opening a presentation as read-only

Overview

Set the read-only recommendation flag to ask readers to avoid editing the original presentation. The flag can be read, changed and preserved when the file is saved. It is useful for a review copy where an editing prompt is enough.

Usage example (C#)

Install Aspose.Slides for .NET before running this standalone example. Save a generated review deck with the read-only recommendation enabled. This is a presentation setting, so the example reopens the output and prints True.

using System;
using Aspose.Slides;
using Aspose.Slides.Export;

using var presentation = new Presentation();
var shape = presentation.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 40, 40, 500, 140);
shape.AddTextFrame("Sample slide");
presentation.ProtectionManager.ReadOnlyRecommended = true;
presentation.Save("source.pptx", SaveFormat.Pptx);
using var opened = new Presentation("source.pptx");
Console.WriteLine(opened.ProtectionManager.ReadOnlyRecommended);

FAQ

Does this prevent someone from changing the file?

It is a recommendation, not encryption or a password requirement. Choose a protection mechanism appropriate to the intended behavior.

Can I clear the read-only recommendation on a loaded presentation?

Yes. Clear the recommendation flag and save the updated deck.

Can I combine the recommendation with password protection?

Yes. The recommendation and password settings serve different purposes; a recommendation alone does not require a password.

Guides

Related feature: Set a password for editing.

All features