OpenAsync(HttpClient, Uri, PdfOptions) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Opens the remote PDF file at uri through HTTP range requests.

public static Task<PdfDocument> OpenAsync(HttpClient httpClient, Uri uri, PdfOptions options)

Parameters

httpClient
HttpClient

The client the requests go through; not disposed. It stays in use until the document is disposed.

uri
Uri?

The file's address.

options
PdfOptions

The options, such as the range block size, cache limit and whether synchronous reads may fetch.

Returns

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

Remarks

Spec #33, viewer capability 5. As OpenAsync(HttpClient, Uri, PdfOptions, CancellationToken), without cancellation.