Method Open

Namespace
SoftZenPdf.Redact
Assembly
SoftZenPdf.Redact.dll

Open(string, string?)

Opens a PDF for redaction.

public static PdfRedactor Open(string path, string? password = null)

Parameters

path string

The PDF file.

password string

For encrypted files, the user or owner password.

Returns

PdfRedactor

Exceptions

UnauthorizedAccessException

The file's permissions do not allow changing page content; open it with the owner password.

PdfPasswordException

The file is encrypted and the password is missing or wrong.