[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.SaveAsGif

SaveAsGif Method

SaveAsGif(string, ViewState, OutputRange, SaveAsImageOptions)

Saves the document pages as images in GIF format, one page per output file.

The filePath parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if filePath does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

Declaration
public void SaveAsGif(string filePath, ViewState viewState, OutputRange pageRange = null, SaveAsImageOptions options = null)
Public Sub SaveAsGif(filePath As String, viewState As ViewState, Optional pageRange As OutputRange = Nothing, Optional options As SaveAsImageOptions = Nothing)
Parameters
Type Name Description
string filePath

The output file name.

ViewState viewState

The document view state.

OutputRange pageRange

The range of pages that should be saved.

SaveAsImageOptions options

Options that allow customizing the output images.

SaveAsGif(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in GIF format, one page per output file.

The filePath parameter is used as a .NET format string, with current page number (1-based) passed to it as the value to be formatted. Note that if filePath does not contain a format item (such as "{0}"), all pages will be saved into the same file name, the last page overwriting everything else.

Declaration
public void SaveAsGif(string filePath, OutputRange pageRange = null, SaveAsImageOptions options = null)
Public Sub SaveAsGif(filePath As String, Optional pageRange As OutputRange = Nothing, Optional options As SaveAsImageOptions = Nothing)
Parameters
Type Name Description
string filePath

The output file name.

OutputRange pageRange

The range of pages that should be saved.

SaveAsImageOptions options

Options that allow customizing the output images.