Redactor

Redactor(string)

の新しいインスタンスを初期化しますRedactorファイルパスを使用するクラス.

public Redactor(string filePath)
パラメータ タイプ 説明
filePath String ファイルへのパス

次の例は、墨消しのためにドキュメントを開く方法を示しています。

using (Redactor redactor = new Redactor(@"C:\sample.pdf"))
{
    // ここで、ドキュメント インスタンスを使用してリダクションを実行できます
}

関連項目


Redactor(Stream)

の新しいインスタンスを初期化しますRedactor stream. を使用したクラス

public Redactor(Stream document)
パラメータ タイプ 説明
document Stream ドキュメントのソース ストリーム

次の例は、ストリームからドキュメントを開く方法を示しています。

using (Stream stream = File.Open(@"C:\\sample.pdf", FileMode.Open, FileAccess.ReadWrite))
{
    using (Redactor redactor = new Redactor(stream))
    {
        // ここで、ドキュメント インスタンスを使用してリダクションを実行できます
    }
}

関連項目


Redactor(string, LoadOptions)

の新しいインスタンスを初期化しますRedactor path. を使用した、パスワードで保護されたドキュメントのクラス

public Redactor(string filePath, LoadOptions loadOptions)
パラメータ タイプ 説明
filePath String ファイルへのパス。
loadOptions LoadOptions パスワードを含むオプション。

関連項目


Redactor(string, LoadOptions, RedactorSettings)

の新しいインスタンスを初期化しますRedactorパスと設定を使用して、パスワードで保護されたドキュメントのクラス.

public Redactor(string filePath, LoadOptions loadOptions, RedactorSettings settings)
パラメータ タイプ 説明
filePath String ファイルへのパス。
loadOptions LoadOptions パスワードを含むファイル依存のオプション。
settings RedactorSettings リダクション プロセスのデフォルト設定。

関連項目


Redactor(Stream, LoadOptions)

の新しいインスタンスを初期化しますRedactor stream. を使用したパスワードで保護されたドキュメントのクラス

public Redactor(Stream document, LoadOptions loadOptions)
パラメータ タイプ 説明
document Stream ソース入力ストリーム。
loadOptions LoadOptions パスワードを含むオプション。

次の例は、LoadOptions を使用してパスワードで保護されたドキュメントを開く方法を示しています。

LoadOptions loadOptions = new LoadOptions("mypassword");
using (Redactor redactor = new Redactor(@"C:\sample.pdf", loadOptions))
{
    // ここで、ドキュメント インスタンスを使用してリダクションを実行できます
}

関連項目


Redactor(Stream, LoadOptions, RedactorSettings)

の新しいインスタンスを初期化しますRedactorstream と settings. を使用した、パスワードで保護されたドキュメントのクラス

public Redactor(Stream document, LoadOptions loadOptions, RedactorSettings settings)
パラメータ タイプ 説明
document Stream ソース入力ストリーム。
loadOptions LoadOptions パスワードを含むオプション。
settings RedactorSettings リダクション プロセスのデフォルト設定。

次の例は、LoadOptions を使用してパスワードで保護されたドキュメントを開く方法を示しています。

LoadOptions loadOptions = new LoadOptions("mypassword");
using (Redactor redactor = new Redactor(@"C:\sample.pdf", loadOptions))
{
    // ここで、ドキュメント インスタンスを使用してリダクションを実行できます
}

関連項目