[]
        
(Showing Draft Content)

C1.iOS.Viewer.FlexViewer.SaveAsJpeg

SaveAsJpeg Method

SaveAsJpeg(string, OutputRange, SaveAsImageOptions)

Saves the document pages as images in JPEG 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.

Declaration
public void SaveAsJpeg(string fileName, OutputRange pageRange = null, SaveAsImageOptions options = null)
Parameters
Type Name Description
string fileName

The output file path.

OutputRange pageRange

The GrapeCity.Documents.Common.OutputRange object that defines which pages of the document should be saved.

SaveAsImageOptions options

The GrapeCity.Documents.Pdf.SaveAsImageOptions object.