Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

Protect sensitive information and control document access easily. The Syncfusion .NET PowerPoint library (Presentation) lets you programmatically encrypt and decrypt presentations in C# without relying on Microsoft PowerPoint or interop dependencies.

Encrypt a PowerPoint presentation using C#

This example code shows how to easily encrypt a PowerPoint presentation using the Syncfusion .NET PowerPoint library with just a few lines of C# code.

using Syncfusion.Presentation;
//Open an existing presentation
using FileStream inputStream = new FileStream("Template.pptx", FileMode.Open, FileAccess.Read);
using IPresentation presentation = Presentation.Open(inputStream);
//Encrypt the presentation with a password
presentation.Encrypt("syncfusion");
//Save the presentation
using FileStream outputStream = new FileStream("Result.pptx", FileMode.Create, FileAccess.ReadWrite);
presentation.Save(outputStream);

Key features of protecting PowerPoint presentations

Encrypt and decrypt

Users can encrypt an existing PowerPoint file or create one from scratch using the .NET PowerPoint library. Also, decrypt PowerPoint files that have already been password protected.

Restrict editing

Protect a PowerPoint presentation with a password to restrict unauthorized editing.

Mark as final

Make the PowerPoint presentation read-only to prevent readers from making unintended changes.

Syncfusion .NET PowerPoint Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Frequently Asked Questions

Yes, you can programmatically set the document to read-only mode using the .NET PowerPoint library, restricting users from making changes in Microsoft PowerPoint.

Yes, you can programmatically encrypt a PowerPoint file with your desired password using the .NET PowerPoint library.

No, the correct password must be provided to open and edit a password-protected PowerPoint file programmatically using the .NET PowerPoint Library.

Yes, you can decrypt password-protected PowerPoint files and remove editing restrictions using the .NET PowerPoint library.

No, the .NET PowerPoint library only uses your password to open the document, verifying it against the encrypted password in the PowerPoint file. It does not store passwords, ensuring the security of confidential information.

You can access it through the Syncfusion.Presentation.Net.Core NuGet package. The documentation provides detailed code samples and a video tutorial, facilitating seamless integration.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.Here are some of their experiences.

Rated by users across the globe

Want to create, View, and edit PPT files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

Mobile Free Evaluation Section

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Scroll up icon