FixedPageSaveOptions.JpegQuality

FixedPageSaveOptions JpegQuality property. Gets or sets a value determining the quality of the JPEG images.

FixedPageSaveOptions.JpegQuality property

Gets or sets a value determining the quality of the JPEG images.

public int JpegQuality { get; set; }

Remarks

Has effect only when a document contains JPEG images.

Use this property to get or set the quality of the images inside a document when saving in fixed page format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.

The default value is 95.

Examples

Shows how to specify quality of the JPEG images.

XpsSaveOptions xpsSaveOptions = new XpsSaveOptions();
xpsSaveOptions.JpegQuality = 50;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "FixedPageSaveOptions.JpegQuality.xps", xpsSaveOptions)
    .Execute();

See Also