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.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 22.1
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