Click or drag to resize

PdfLZWDecodeFilter Class

The LZWDecode filter decode data that has been encoded using the LZW (Lempel-Ziv-Welch) variable-length, adaptive compression method that has been adopted as one of the standard compression methods in the Tag Image File Format (TIFF) standard. For details on LZW encoding see 7.4.4.2, "Details of LZW Encoding."
Inheritance Hierarchy
SystemObject
  SautinSoft.Pdf.FiltersPdfFilter
    SautinSoft.Pdf.FiltersPdfLZWDecodeFilter

Namespace: SautinSoft.Pdf.Filters
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfLZWDecodeFilter : PdfFilter

The PdfLZWDecodeFilter type exposes the following members.

Constructors
 NameDescription
Public methodPdfLZWDecodeFilterInitializes a new instance of the PdfLZWDecodeFilter class
Top
Properties
 NameDescription
Public propertyBitsPerComponent

(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.

Public propertyColors

(May be used only if Predictor is greater than 1) The number of interleaved color components per sample. Valid values are 1 to 4 (PDF 1.0) and 1 or greater (PDF 1.3).

Default value: 1.

Public propertyColumns

(May be used only if Predictor is greater than 1) The number of samples in each row.

Default value: 1.

Public propertyEarlyChange

An indication of when to increase the code length. If the value is , code length increases shall be postponed as long as possible. If the value is , code length increases shall occur one code early. This parameter is included because LZW sample code distributed by some vendors increases the code length one code earlier than necessary.

Default value: .

Public propertyFilterType Gets the LZWDecode value.
(Overrides PdfFilterFilterType)
Public propertyPredictor

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.

Public propertyPredictorFunction

Gets or sets the predictor algorithm.

Default value: None.

Top
See Also