[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.Save

Save Method

Save(string)

Saves the current PDF document to a file using the default mode (no incremental update, not linearized).

Declaration
public void Save(string fileName)
Public Sub Save(fileName As String)
Parameters
Type Name Description
string fileName

The name of the PDF file to create.

Save(Stream)

Saves the current PDF document to a Stream using the default mode (no incremental update, not linearized).

Declaration
public void Save(Stream stream)
Public Sub Save(stream As Stream)
Parameters
Type Name Description
Stream stream

The Stream object to use for saving the document.

Save(Stream, SaveMode)

Saves the current PDF document to a Stream using the specified save mode.

Declaration
public void Save(Stream stream, SaveMode saveMode)
Public Sub Save(stream As Stream, saveMode As SaveMode)
Parameters
Type Name Description
Stream stream

The Stream object to use for saving the document.

SaveMode saveMode

The PDF saving mode.

Save(string, SaveMode)

Saves the current PDF document to a file using a specified save mode.

Declaration
public void Save(string fileName, SaveMode saveMode)
Public Sub Save(fileName As String, saveMode As SaveMode)
Parameters
Type Name Description
string fileName

The name of the PDF file to create.

SaveMode saveMode

The PDF save mode.

Save(Stream, SavePdfOptions)

Saves the current PDF document to a Stream using a specified PDF save options.

Declaration
public void Save(Stream stream, SavePdfOptions saveOptions)
Public Sub Save(stream As Stream, saveOptions As SavePdfOptions)
Parameters
Type Name Description
Stream stream

The Stream object to use for saving the document.

SavePdfOptions saveOptions

The PDF save options.

Save(string, SavePdfOptions)

Saves the current PDF document to a file using a specified PDF save options.

Declaration
public void Save(string fileName, SavePdfOptions saveOptions)
Public Sub Save(fileName As String, saveOptions As SavePdfOptions)
Parameters
Type Name Description
string fileName

The name of the PDF file to create.

SavePdfOptions saveOptions

The PDF save options.

Save(string, bool)

Saves the current PDF document to a file, optionally using incremental update mode.

Declaration
public void Save(string fileName, bool incrementalUpdate)
Public Sub Save(fileName As String, incrementalUpdate As Boolean)
Parameters
Type Name Description
string fileName

The name of the PDF file to create.

bool incrementalUpdate

Indicates whether the document should be saved using incremental update.

Save(Stream, bool)

Saves the current PDF document to a Stream, optionally using incremental update mode.

Declaration
public void Save(Stream stream, bool incrementalUpdate)
Public Sub Save(stream As Stream, incrementalUpdate As Boolean)
Parameters
Type Name Description
Stream stream

The Stream object to use for saving the document.

bool incrementalUpdate

Indicates whether the document should be saved using incremental update.