通过 C# 解锁 ODP 演示文稿
使用 .NET 库从 ODP 中删除保护。
如何使用 C# 解锁 ODP 文件
为了删除保护 ODP 文件,我们将使用
API 是一个功能丰富、功能强大且易于使用的 C# 平台文档保护 API。打开
包管理器,搜索 Aspose.Slides 并安装。您还可以从包管理器控制台使用以下命令。
Aspose.Slides
PM> Install-Package Aspose.Slides.NET
通过 C# 解锁 ODP
您需要在项目中引用 aspose.slides.dll 来执行以下工作流程。
使用 Presentation 实例加载锁定的 ODP
使用 IProtectionManager.IsWriteProtected 布尔类型属性检查保护
使用 IProtectionManager.RemoveWriteProtection 方法删除保护
以 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.
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).
阅读更多