HTML JPG PDF XML ODP
Aspose.Slides  for .NET
ODP

Unlock ODP Presentation in C#

Remove protection from ODP using .NET library.

Unlock ODP File Using C#

In order to remove protection ODP file, we’ll use

Aspose.Slides for .NET

API which is a feature-rich, powerful and easy to use document protection API for C# platform. Open

NuGet

package manager, search for Aspose.Slides and install. You may also use the following command from the Package Manager Console.

Aspose.Slides


PM> Install-Package Aspose.Slides.NET

Unlock ODP via C#

You need aspose.slides.dll referenced in your project to execute the following workflow.

  1. Load locked ODP with an instance of Presentation

  2. Check protection using IProtectionManager.IsWriteProtected boolean type property

  3. Remove protection using the IProtectionManager.RemoveWriteProtection method

  4. Save result in ODP format

System Requirements

Aspose.Slides for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Aspose.Slides for .NET referenced in your project
 

Command


// load locked ODP file
var presentation = new Slides.Presentation("locked.odp");

// check if presentation is write protected
if (presentation.ProtectionManager.IsWriteProtected)
    // remove protection                
    presentation.ProtectionManager.RemoveWriteProtection();

// save presentation
presentation.Save("output.ppt", Aspose.Slides.Export.SaveFormat.Odp);
 
  • About Aspose.Slides for .NET API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Free App to Unlock ODP

    Other Supported Unlocking Formats

    Using C#, one can easily remove protection / unlocking of different formats including.

    PPT (Microsoft PowerPoint 97-2003)
    PPTX (Open XML presentation Format)