Class Security
Class Security
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Aspose.Pdf.Plugins.Security プラグインを表します。
public sealed class Security : IPlugin
継承
実装
継承されたメンバー
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
例
この例は、PDF ドキュメントを暗号化する方法を示しています。
// Security を作成
var plugin = new Security();
// 指示を設定するための EncryptionOptions オブジェクトを作成
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
// 処理を実行
plugin.Process(opt);
この例は、PDF ドキュメントを復号化する方法を示しています。
// Security を作成
var plugin = new Security();
// 指示を設定するための DecryptionOptions オブジェクトを作成
var opt = new DecryptionOptions("123456"));
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
// 処理を実行
plugin.Process(opt);
コンストラクター
Security()
public Security()
メソッド
Process(IPluginOptions)
指定されたパラメーターで Aspose.Pdf.Plugins.Security の処理を開始します。
public ResultContainer Process(IPluginOptions options)
パラメーター
options
IPluginOptions
Aspose.Pdf.Plugins.Security のための指示を含むオプションオブジェクト。
戻り値
操作の結果を含む ResultContainer オブジェクト。