OpenAsync(Stream) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the PDF file held by stream, from its current position, reading a non-seekable stream asynchronously.

public Task<PdfDocument> OpenAsync(Stream stream)

Parameters

stream
Stream

The stream. It is not disposed. A seekable stream is read in place as objects are used: keep it open and unchanged until the document is disposed. A non-seekable stream is read to its end, asynchronously, before the file is parsed.

Returns

Task<PdfDocument>
The document. Dispose it when done.

Remarks

ISO 32000-2 §7.5. As OpenAsync(Stream, CancellationToken), without cancellation.