public final class PdfFlateFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BEST_COMPRESSION |
static int |
BEST_SPEED |
static int |
DEFAULT_COMPRESSION |
static int |
DEFAULT_STRATEGY |
static int |
DEFLATED |
static int |
FILTERED |
static int |
HUFFMAN_ONLY |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
decode(ByteBuffer bb) |
static void |
decompress(PdfStream pdfStream) |
static ByteBuffer |
dePredict(ByteBuffer bb,
PdfDict dp) |
static ByteBuffer |
encode(ByteBuffer bb,
int level) |
static void |
encode(PdfStream s,
int level) |
static ByteBuffer |
encode(String s,
int level) |
public static final int DEFLATED
public static final int BEST_SPEED
public static final int BEST_COMPRESSION
public static final int DEFAULT_COMPRESSION
public static final int FILTERED
public static final int HUFFMAN_ONLY
public static final int DEFAULT_STRATEGY
public static void encode(PdfStream s, int level) throws PdfException
PdfExceptionpublic static ByteBuffer encode(ByteBuffer bb, int level)
public static ByteBuffer encode(String s, int level)
public static void decompress(PdfStream pdfStream) throws PdfException, IOException
PdfExceptionIOExceptionpublic static ByteBuffer decode(ByteBuffer bb) throws PdfBadFileException
PdfBadFileExceptionpublic static ByteBuffer dePredict(ByteBuffer bb, PdfDict dp) throws PdfException
PdfExceptionTo contact our support team, send an e-mail to support@gnostice.com.