SaveAsync(Stream, PdfSaveOptions?, CancellationToken) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Writes the document to stream as a complete file, writing asynchronously.

public Task SaveAsync(Stream stream, PdfSaveOptions? options = null, CancellationToken cancellationToken = default(CancellationToken))

Parameters

stream
Stream

Where to write, from its current position. It is not disposed.

options
PdfSaveOptions

How to lay the file out; null for the defaults (a classic cross-reference table).

cancellationToken
CancellationToken

Cancels the writes.

Returns

Task
A task that completes when the file is written.

Remarks

ISO 32000-2 §7.5. Writes exactly the bytes Save(Stream, PdfSaveOptions) writes, from the same writer; only the writes to stream are asynchronous.