Table of Contents

Method SaveAsync

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

SaveAsync(string)

Saves the document async to the specified path. If a file already exists, it will be overwritten. The async version of save is useful if you want to create a signed PDF file with a time stamp. A time stamp server should be accessed asynchronously, and therefore we introduced this function.

public Task SaveAsync(string path)

Parameters

path string

Returns

Task

SaveAsync(Stream, bool)

Saves the document to the specified stream. The async version of save is useful if you want to create a signed PDF file with a time stamp. A time stamp server should be accessed asynchronously, and therefore we introduced this function.

public Task SaveAsync(Stream stream, bool closeStream = false)

Parameters

stream Stream
closeStream bool

Returns

Task