Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfDocument Class / SaveAsBmp Method / SaveAsBmp(String,ViewState,OutputRange,SaveAsImageOptions) Method
The output file path.
The document view state.
The range of pages that should be saved.
Options that allow customizing the output images.

In This Topic
    SaveAsBmp(String,ViewState,OutputRange,SaveAsImageOptions) Method
    In This Topic
    Saves the document pages as images in BMP 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.

    Syntax
    'Declaration
     
    Public Overloads Sub SaveAsBmp( _
       ByVal filePath As System.String, _
       ByVal viewState As ViewState, _
       Optional ByVal pageRange As OutputRange, _
       Optional ByVal options As SaveAsImageOptions _
    ) 
    public void SaveAsBmp( 
       System.string filePath,
       ViewState viewState,
       OutputRange pageRange,
       SaveAsImageOptions options
    )

    Parameters

    filePath
    The output file path.
    viewState
    The document view state.
    pageRange
    The range of pages that should be saved.
    options
    Options that allow customizing the output images.
    See Also