OpenAsync(HttpClient, Uri) Method

Definition

Namespace Broadside
Assembly Broadside.dll

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

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

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.

Returns

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

Remarks

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