[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.SaveAsSvg

SaveAsSvg Method

SaveAsSvg(string, ViewState, OutputRange, SaveAsImageOptions, XmlWriterSettings)

Saves the document pages as images in SVG 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 SaveAsSvg(string filePath, ViewState viewState, OutputRange pageRange = null, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
Public Sub SaveAsSvg(filePath As String, viewState As ViewState, Optional pageRange As OutputRange = Nothing, Optional options As SaveAsImageOptions = Nothing, Optional xmlSettings As XmlWriterSettings = Nothing)
Parameters
Type Name Description
string filePath

The output file path.

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.

XmlWriterSettings xmlSettings

The output XML formatting settings.

SaveAsSvg(string, OutputRange, SaveAsImageOptions, XmlWriterSettings)

Saves the document pages as images in SVG 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 SaveAsSvg(string filePath, OutputRange pageRange = null, SaveAsImageOptions options = null, XmlWriterSettings xmlSettings = null)
Public Sub SaveAsSvg(filePath As String, Optional pageRange As OutputRange = Nothing, Optional options As SaveAsImageOptions = Nothing, Optional xmlSettings As XmlWriterSettings = Nothing)
Parameters
Type Name Description
string filePath

The output file path.

OutputRange pageRange

The range of pages that should be saved.

SaveAsImageOptions options

Options that allow customizing the output images.

XmlWriterSettings xmlSettings

The output XML formatting settings.