ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters). More...
Static Public Member Functions | |
static | getAvailableFilters () |
Get a list of available decoding filters. More... | |
static | decodeFilter ($filter, $data) |
Decode data using the specified filter type. More... | |
static | decodeFilterStandard ($data) |
Standard Default decoding filter (leaves data unchanged). More... | |
static | decodeFilterASCIIHexDecode ($data) |
ASCIIHexDecode Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data. More... | |
static | decodeFilterASCII85Decode ($data) |
ASCII85Decode Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data. More... | |
static | decodeFilterLZWDecode ($data) |
LZWDecode Decompresses data encoded using the LZW (Lempel-Ziv-Welch) adaptive compression method, reproducing the original text or binary data. More... | |
static | decodeFilterFlateDecode ($data) |
FlateDecode Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data. More... | |
static | decodeFilterRunLengthDecode ($data) |
RunLengthDecode Decompresses data encoded using a byte-oriented run-length encoding algorithm. More... | |
static | decodeFilterCCITTFaxDecode ($data) |
CCITTFaxDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the CCITT facsimile standard, reproducing the original data (typically monochrome image data at 1 bit per pixel). More... | |
static | decodeFilterJBIG2Decode ($data) |
JBIG2Decode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the JBIG2 standard, reproducing the original monochrome (1 bit per pixel) image data (or an approximation of that data). More... | |
static | decodeFilterDCTDecode ($data) |
DCTDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using a DCT (discrete cosine transform) technique based on the JPEG standard, reproducing image sample data that approximates the original data. More... | |
static | decodeFilterJPXDecode ($data) |
JPXDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the wavelet-based JPEG2000 standard, reproducing the original image data. More... | |
static | decodeFilterCrypt ($data) |
Crypt (NOT IMPLEMETED - RETURN AN EXCEPTION) Decrypts data encrypted by a security handler, reproducing the data as it was before encryption. More... | |
static | Error ($msg) |
Throw an exception. More... | |
Static Private Attributes | |
static | $available_filters = array('ASCIIHexDecode', 'ASCII85Decode', 'LZWDecode', 'FlateDecode', 'RunLengthDecode') |
Define a list of available filter decoders. More... | |
This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).
Definition at line 51 of file tcpdf_filters.php.
|
static |
Decode data using the specified filter type.
$filter | (string) Filter name. |
$data | (string) Data to decode. |
Definition at line 79 of file tcpdf_filters.php.
References $data, decodeFilterASCII85Decode(), decodeFilterASCIIHexDecode(), decodeFilterCCITTFaxDecode(), decodeFilterCrypt(), decodeFilterDCTDecode(), decodeFilterFlateDecode(), decodeFilterJBIG2Decode(), decodeFilterJPXDecode(), decodeFilterLZWDecode(), decodeFilterRunLengthDecode(), and decodeFilterStandard().
Referenced by TCPDF_PARSER\decodeStream().
|
static |
ASCII85Decode Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data.
$data | (string) Data to decode. |
Definition at line 190 of file tcpdf_filters.php.
References $data, and Error().
Referenced by decodeFilter().
|
static |
ASCIIHexDecode Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data.
$data | (string) Data to decode. |
Definition at line 150 of file tcpdf_filters.php.
References $data, and Error().
Referenced by decodeFilter().
|
static |
CCITTFaxDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the CCITT facsimile standard, reproducing the original data (typically monochrome image data at 1 bit per pixel).
$data | (string) Data to decode. |
Definition at line 408 of file tcpdf_filters.php.
References Error().
Referenced by decodeFilter().
|
static |
Crypt (NOT IMPLEMETED - RETURN AN EXCEPTION) Decrypts data encrypted by a security handler, reproducing the data as it was before encryption.
$data | (string) Data to decode. |
Definition at line 460 of file tcpdf_filters.php.
References Error().
Referenced by decodeFilter().
|
static |
DCTDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using a DCT (discrete cosine transform) technique based on the JPEG standard, reproducing image sample data that approximates the original data.
$data | (string) Data to decode. |
Definition at line 434 of file tcpdf_filters.php.
References Error().
Referenced by decodeFilter().
|
static |
FlateDecode Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data.
$data | (string) Data to decode. |
Definition at line 355 of file tcpdf_filters.php.
References $data, and Error().
Referenced by decodeFilter().
|
static |
JBIG2Decode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the JBIG2 standard, reproducing the original monochrome (1 bit per pixel) image data (or an approximation of that data).
$data | (string) Data to decode. |
Definition at line 421 of file tcpdf_filters.php.
References Error().
Referenced by decodeFilter().
|
static |
JPXDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the wavelet-based JPEG2000 standard, reproducing the original image data.
$data | (string) Data to decode. |
Definition at line 447 of file tcpdf_filters.php.
References Error().
Referenced by decodeFilter().
|
static |
LZWDecode Decompresses data encoded using the LZW (Lempel-Ziv-Welch) adaptive compression method, reproducing the original text or binary data.
$data | (string) Data to decode. |
Definition at line 274 of file tcpdf_filters.php.
References $data.
Referenced by decodeFilter().
|
static |
RunLengthDecode Decompresses data encoded using a byte-oriented run-length encoding algorithm.
$data | (string) Data to decode. |
Definition at line 371 of file tcpdf_filters.php.
References $data.
Referenced by decodeFilter().
|
static |
Standard Default decoding filter (leaves data unchanged).
$data | (string) Data to decode. |
Definition at line 138 of file tcpdf_filters.php.
References $data.
Referenced by decodeFilter().
|
static |
Throw an exception.
$msg | (string) The error message |
Definition at line 473 of file tcpdf_filters.php.
Referenced by decodeFilterASCII85Decode(), decodeFilterASCIIHexDecode(), decodeFilterCCITTFaxDecode(), decodeFilterCrypt(), decodeFilterDCTDecode(), decodeFilterFlateDecode(), decodeFilterJBIG2Decode(), and decodeFilterJPXDecode().
|
static |
Get a list of available decoding filters.
Definition at line 67 of file tcpdf_filters.php.
References $available_filters.
Referenced by TCPDF_PARSER\decodeStream().
|
staticprivate |
Define a list of available filter decoders.
static
Definition at line 57 of file tcpdf_filters.php.
Referenced by getAvailableFilters().