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

通過 C# 解鎖 ODP 演示文稿

使用 .NET 庫從 ODP 中刪除保護。

如何使用 C# 解鎖 ODP 文件

為了刪除保護 ODP 文件,我們將使用

Aspose.Slides for .NET

API 是一個功能豐富、功能強大且易於使用的 C# 平台文檔保護 API。打開

NuGet

包管理器,搜索 Aspose.Slides 並安裝。您還可以從包管理器控制台使用以下命令。

Aspose.Slides


PM> Install-Package Aspose.Slides.NET

通過 C# 解鎖 ODP

您需要在項目中引用 aspose.slides.dll 來執行以下工作流程。

  1. 使用 Presentation 實例加載鎖定的 ODP

  2. 使用 IProtectionManager.IsWriteProtected 布爾類型屬性檢查保護

  3. 使用 IProtectionManager.RemoveWriteProtection 方法刪除保護

  4. 以 ODP 格式保存結果

系統要求

所有主要操作系統都支持 Aspose.Slides for .NET。只需確保您具有以下先決條件。

  • Microsoft Windows 或兼容 .NET Framework、.NET Core、Windows Azure、Mono 或 Xamarin 平台的操作系統
  • Microsoft Visual Studio 等開發環境
  • 項目中引用的 .NET 的 Aspose.Slides
 

命令


// 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);
 
  • 關於 Aspose.Slides for .NET API

    Aspose.Slides API 可用於讀取、寫入、操作 Microsoft PowerPoint 文檔並將其轉換為 PDF、XPS、HTML、TIFF、ODP 和各種其他格式。可以從頭開始創建新文件並將其保存為相關支持的格式。 Aspose.Slides 是一個獨立的 API,用於創建、解析或操作演示文稿、幻燈片和元素,它不依賴於 Microsoft 或 OpenOffice 等任何軟件。

    Free App to Unlock ODP

    Check our live demos to unlock ODP files with following benefits.

      No need to download or setup anything
      No need to write or compile code
      Just upload ODP file and hit the "Unlock" button
      Download the resultant ODP file from the link

    ODP 什麼是 ODP 文件格式

    Files with ODP extension represent presentation file format used by OpenOffice.org in the OASISOpen standard. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings. ODP files can be opened by applications that conform to the OpenDocument format (such as OpenOffice or StarOffice).

    閱讀更多

    其他支持的解鎖格式

    使用 C#,可以輕鬆刪除不同格式的保護/解鎖,包括。

    PPT (微軟PowerPoint 97-2003)
    PPTX (打開 XML 表示格式)