Class FlateDecodeFilter
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
PdfNamedecodeParams
PdfObjectstreamDictionary
PdfDictionary
Returns
- byte[]
DecodePredictor(byte[], PdfObject)
public static byte[] DecodePredictor(byte[] @in, PdfObject decodeParams)
Parameters
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
booltrue 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
booltrue to read a correct stream. false to try to read a corrupted stream.
out
MemoryStreamthe out stream which will be used to write the bytes.
Returns
- byte[]
the decoded data