Class Security

情報

Documentize.Securityプラグインを表します。PDF文書を暗号化および復号化するために使用されます。

public static class Security

継承

objectSecurity

継承メンバー

この例はPDF文書を暗号化する方法を示します。

// 指示を設定するためのEncryptionOptionsオブジェクトを作成
var options = new EncryptionOptions("123456", "qwerty");
// 入力ファイルパスを追加
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// 出力ファイルパスを設定
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// プロセスを実行
Security.Process(options);

この例はPDF文書を復号化する方法を示します。

// 指示を設定するためのDecryptionOptionsオブジェクトを作成
var options = new DecryptionOptions("123456");
// 入力ファイルパスを追加
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// 出力ファイルパスを設定
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// プロセスを実行
Security.Process(options);

メソッド

Process(EncryptionOptions)

PDFドキュメントを暗号化します。

public static ResultContainer Process(EncryptionOptions options)

パラメータ

  • options EncryptionOptions: 操作の指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含むオブジェクトです。

例外

ArgumentException

オプションが設定されていない場合。

Process(DecryptionOptions)

PDFドキュメントを復号化します。

public static ResultContainer Process(DecryptionOptions options)

パラメータ

  • options DecryptionOptions: 操作の指示を含むオプションオブジェクトです。

戻り値

ResultContainer : 操作の結果を含むオブジェクトです。

例外

ArgumentException

オプションが設定されていない場合。

名前空間: Documentize アセンブリ: Documentize.dll

 日本語