PdfDocumentSaveAsync Method

Asynchronously saves the PDF document to a byte array and releases all resources; the document cannot be used afterwards

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
C#
public Task<byte[]> SaveAsync(
	CancellationToken ct = default
)

Parameters

ct  CancellationToken  (Optional)
A cancellation token that can be used to cancel the asynchronous operation. When cancellation is requested the task returned by this method will complete by throwing OperationCanceledException as soon as possible.

Return Value

TaskByte
Byte array containing the created PDF data

See Also