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.
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);
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.
Protect a PowerPoint presentation with a password to restrict unauthorized editing.
Make the PowerPoint presentation read-only to prevent readers from making unintended changes.
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
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.
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.