Click or drag to resize
Pdf Library for .NET

HtmlToPdfOptionsJpegCompressionEnabled Property

Gets or sets a flag indicating if the JPEG compression is enabled or not for the images in the generated pdf document.

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax
public bool JpegCompressionEnabled { get; set; }

Property Value

Type: Boolean
Remarks
By default the JPEG compression is enabled to reduce the size of the generated pdf document. When the JPEG compression is enabled the quality of the images in the generated pdf is lower than the quality of the original images from the web page, and this quality depends on the JpegCompressionLevel parameter. When the JpegCompressionLevel is increased, the quality of the images in pdf decreases.
See Also