Click or drag to resize

PdfLZWDecodeFilterPredictor Property

A code that selects the predictor algorithm, if any. If the value is 1, the PdfFlateDecodeFilter shall assume that the normal algorithm was used to encode the data, without prediction. If the value is greater than 1, the PdfFlateDecodeFilter shall assume that the data was differenced before being encoded, and Predictor selects the predictor algorithm. For more information regarding Predictor values greater than 1, see 7.4.4.4, "LZW and Flate Predictor Functions".

Default value: 1.

Namespace:  GemBox.Pdf.Filters
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public int Predictor { get; set; }

Property Value

Type: Int32
The code that selects the predictor algorithm, if any.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionValue is less than 1.
InvalidPdfDictionaryEntryExceptionValue is not according to PDF Specification ISO 32000-1:2008.
See Also