Click or drag to resize

PdfFlateDecodeFilterBitsPerComponent Property

(May be used only if Predictor is greater than 1) The number of bits used to represent each color component in a sample. Valid values are 1, 2, 4, 8, and (PDF 1.5) 16.

Default value: 8.


Namespace: SautinSoft.Pdf.Filters
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.6.5
Syntax
public int BitsPerComponent { get; set; }

Property Value

Int32
The number of bits used to represent each color component in a sample.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionValue is not 1, 2, 4, 8 or 16.
InvalidOperationExceptionPredictor is not greater than 1.
InvalidPdfDictionaryEntryExceptionValue is not according to PDF Specification ISO 32000-1:2008.
See Also