Open(String, PdfCredentials) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the encrypted PDF file at path with credentials.

public PdfDocument Open(string path, PdfCredentials credentials)

Parameters

path
String

The file path.

credentials
PdfCredentials

The credentials, such as a PdfPassword; they override those set on the options.

Returns

PdfDocument
The document. Dispose it when done.

Remarks

ISO 32000-2 §7.5 and §7.6. For an unencrypted file the credentials are ignored.