Table of Contents

Class FlateDecodeFilter

Namespace
iText.Kernel.Pdf.Filters
Assembly
itext.kernel.dll

Handles FlateDecode filter.

public class FlateDecodeFilter : MemoryLimitsAwareFilter, IFilterHandler
Inheritance
FlateDecodeFilter
Implements
Derived
Inherited Members

Constructors

FlateDecodeFilter()

public FlateDecodeFilter()

Methods

Decode(byte[], PdfName, PdfObject, PdfDictionary)

public override byte[] Decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)

Parameters

b byte[]
filterName PdfName
decodeParams PdfObject
streamDictionary PdfDictionary

Returns

byte[]

DecodePredictor(byte[], PdfObject)

public static byte[] DecodePredictor(byte[] @in, PdfObject decodeParams)

Parameters

in byte[]

Input byte array.

decodeParams PdfObject

PdfDictionary of decodeParams.

Returns

byte[]

a byte array

FlateDecode(byte[], bool)

A helper to flateDecode.

public static byte[] FlateDecode(byte[] @in, bool strict)

Parameters

in byte[]

the input data

strict bool

true to read a correct stream. false to try to read a corrupted stream.

Returns

byte[]

the decoded data

FlateDecodeInternal(byte[], bool, MemoryStream)

A helper to flateDecode.

protected static byte[] FlateDecodeInternal(byte[] @in, bool strict, MemoryStream @out)

Parameters

in byte[]

the input data

strict bool

true to read a correct stream. false to try to read a corrupted stream.

out MemoryStream

the out stream which will be used to write the bytes.

Returns

byte[]

the decoded data