Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(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: $filter (string) Filter name.
param: $data (string) Data to decode.
return: Decoded data string.

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

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

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

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

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

param: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: Decoded data string.

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

param: $data (string) 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: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: 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: $data (string) Data to decode.
return: Decoded data string.

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

param: $msg (string) The error message