RenderOptionsJpegQuality Property
The JPEG image quality. Valid values are between 1 and 100.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public int JpegQuality { get; set; }

Property Value

Type: Int32
The quality.
The following example demonstrates how to set JPEG quality.
ViewerConfig config = new ViewerConfig();
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = @"C:\storage\document.doc";

ImageOptions options = new ImageOptions();
options.ConvertImageFileType = ConvertImageFileType.JPG;
options.JpegQuality = 100;

List<PageImage> pages = imageHandler.GetPages(guid, options);
See Also