public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_PresentationSaving();
// Opening the presentation file
Presentation presentation = new Presentation(dataDir + "RemoveWriteProtection.pptx");
// Checking if presentation is write protected
if (presentation.ProtectionManager.IsWriteProtected)
// Removing Write protection
presentation.ProtectionManager.RemoveWriteProtection();
// Saving presentation
presentation.Save(dataDir + "File_Without_WriteProtection_out.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
}
}