Open(Stream, PdfCredentials) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the encrypted PDF file held by stream, from its current position, with credentials.

public PdfDocument Open(Stream stream, PdfCredentials credentials)

Parameters

stream
Stream

The stream. It is not disposed; keep it open and unchanged until the document is disposed.

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.