Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Viewer Assembly / C1.Xamarin.Forms.Viewer Namespace / FlexViewer Class / SaveAsPng Method
The output file path.
The GrapeCity.Documents.Common.OutputRange object that defines which pages of the document should be saved.
The GrapeCity.Documents.Pdf.SaveAsImageOptions object.


In This Topic
    SaveAsPng Method
    In This Topic
    Saves the document pages as images in PNG format, one page per output file. The fileName 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 fileName 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 Sub SaveAsPng( _
       ByVal fileName As String, _
       Optional ByVal pageRange As GrapeCity.Documents.Common.OutputRange, _
       Optional ByVal options As GrapeCity.Documents.Pdf.SaveAsImageOptions _
    ) 
    'Usage
     
    
    Dim instance As FlexViewer
    Dim fileName As String
    Dim pageRange As GrapeCity.Documents.Common.OutputRange
    Dim options As GrapeCity.Documents.Pdf.SaveAsImageOptions
     
    instance.SaveAsPng(fileName, pageRange, options)
    public void SaveAsPng( 
       string fileName,
       GrapeCity.Documents.Common.OutputRange pageRange,
       GrapeCity.Documents.Pdf.SaveAsImageOptions options
    )

    Parameters

    fileName
    The output file path.
    pageRange
    The GrapeCity.Documents.Common.OutputRange object that defines which pages of the document should be saved.
    options
    The GrapeCity.Documents.Pdf.SaveAsImageOptions object.
    See Also