[]
        
(Showing Draft Content)

C1.Pdf.C1PdfDocumentBase.SaveAsync

SaveAsync Method

SaveAsync(string)

Saves the PDF document to a file.

Declaration
public Task SaveAsync(string fileName)
Parameters
Type Name Description
string fileName

Name of the PDF file to create.

Returns
Type Description
Task

SaveAsync(Stream)

Saves the PDF document to a Stream.

Declaration
public Task SaveAsync(Stream stream)
Parameters
Type Name Description
Stream stream

Stream object to use for saving the document.

Returns
Type Description
Task
Remarks

Saving the PDF document to a Stream object is often used in Web scenarios, when you are creating a Response object or storing the document in the a cache, and don't want to create temporary files.