Open(Stream) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the PDF file held by stream, from its current position, with default options.

public static PdfDocument Open(Stream stream)

Parameters

stream
Stream

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

Returns

PdfDocument
The document. Dispose it when done.

Remarks

ISO 32000-2 §7.5. A seekable stream is read in place as objects are used, under a lock (a is memory-mapped instead); a non-seekable stream is copied first, into memory up to StreamBufferLimit and into a temporary file beyond it.