public class FlateDecodeFilter extends Object implements IFilterHandler
Constructor and Description |
---|
FlateDecodeFilter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
Decode the byte[] using the provided filterName.
|
static byte[] |
decodePredictor(byte[] in, PdfObject decodeParams) |
static byte[] |
flateDecode(byte[] in, boolean strict)
A helper to flateDecode.
|
public byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
IFilterHandler
decode
in interface IFilterHandler
b
- the bytes that need to be decoded
filterName
- PdfName of the filter
decodeParams
- decode parameters
streamDictionary
- the dictionary of the stream. Can contain additional information needed to decode the byte[].
public static byte[] flateDecode(byte[] in, boolean strict)
in
- the input data
strict
- true
to read a correct stream. false
to try to read a corrupted stream.
public static byte[] decodePredictor(byte[] in, PdfObject decodeParams)
in
- Input byte array.
decodeParams
- PdfDictionary of decodeParams.
Copyright © 1998–2018 iText Group NV. All rights reserved.