PdfDocumentSaveAsync Method

Asynchronously finalizes and returns the PDF document as a byte array

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.0.0
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