Click or drag to resize
Pdf Library for .NET

PdfDocumentJpegCompressionEnabled Property

Gets or sets a flag indicating if JPEG compression is applied to the images in the generated pdf document. Default is true.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public bool JpegCompressionEnabled { get; set; }

Property Value

Boolean
Remarks
How the compression is applied depends on how the document was produced:
  • Documents produced by HtmlToPdf: the Chromium-rendered bytes are compressed once during conversion, using JpegCompressionEnabled / JpegCompressionLevel. The values are reflected onto this property for inspection; changing them on the output document has no effect.
See Also