C#を介してODPプレゼンテーションのロックを解除する
.NETライブラリを使用してODPから保護を削除します。
C#を使用してODPファイルのロックを解除する方法
保護ODPファイルを削除するために、 [Aspose.Slides for .NET](https://products.aspose.com/slides/ja/net) C#プラットフォーム用の機能が豊富で強力で使いやすいドキュメント保護APIであるAPI。開ける [NuGet](https://www.nuget.org/packages/aspose.slides.net) パッケージマネージャー、検索 ** Aspose.Slides ** とインストールします。パッケージマネージャーコンソールから次のコマンドを使用することもできます。
Aspose.Slides
PM> Install-Package Aspose.Slides.NET
C#経由でODPのロックを解除する
次のワークフローを実行するには、プロジェクトで参照されている[aspose.slides.dll](https://downloads.aspose.com/slides/net)が必要です。
ロックされたODPにPresentationのインスタンスをロードする
IProtectionManager.IsWriteProtectedブール型プロパティを使用して保護を確認します
IProtectionManager.RemoveWriteProtectionメソッドを使用して保護を削除します
結果をODP形式で保存
システム要求
Aspose.Slides for .NETは、すべての主要なオペレーティングシステムでサポートされています。次の前提条件があることを確認してください。
-Microsoft Windows、または.NET Framework、.NET Core、Windows Azure、Mono、またはXamarinプラットフォームと互換性のあるOS -MicrosoftVisualStudioのような開発環境 -プロジェクトで参照されているAspose.Slidesfor.NET
指示
// 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.NETAPIについて
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).
続きを読む