Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

(no description)

Author: Nicola Asuni
Version: 1.0.001
File Size: 481 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: TCPDF_FILTERS  - X-Ref


getAvailableFilters()   X-Ref
Get a list of available decoding filters.

return: array Array of available filter decoders.

decodeFilter($filter, $data)   X-Ref
Decode data using the specified filter type.

param: string $filter Filter name.
param: string $data Data to decode.
return: string Decoded data string.

decodeFilterStandard($data)   X-Ref
Standard
Default decoding filter (leaves data unchanged).

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterASCIIHexDecode($data)   X-Ref
ASCIIHexDecode
Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterASCII85Decode($data)   X-Ref
ASCII85Decode
Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterLZWDecode($data)   X-Ref
LZWDecode
Decompresses data encoded using the LZW (Lempel-Ziv-Welch) adaptive compression method, reproducing the original text or binary data.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterFlateDecode($data)   X-Ref
FlateDecode
Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterRunLengthDecode($data)   X-Ref
RunLengthDecode
Decompresses data encoded using a byte-oriented run-length encoding algorithm.

param: string $data Data to decode.

decodeFilterCCITTFaxDecode($data)   X-Ref
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).

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterJBIG2Decode($data)   X-Ref
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).

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterDCTDecode($data)   X-Ref
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.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterJPXDecode($data)   X-Ref
JPXDecode (NOT IMPLEMETED - RETURN AN EXCEPTION)
Decompresses data encoded using the wavelet-based JPEG2000 standard, reproducing the original image data.

param: string $data Data to decode.
return: string Decoded data string.

decodeFilterCrypt($data)   X-Ref
Crypt (NOT IMPLEMETED - RETURN AN EXCEPTION)
Decrypts data encrypted by a security handler, reproducing the data as it was before encryption.

param: string $data Data to decode.
return: string Decoded data string.

Error($msg)   X-Ref
Throw an exception.

param: string $msg The error message