classes-TCPDF-FILTERS

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Tags
class

TCPDF_FILTERS This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).

brief

This is a PHP class for decoding common PDF filters.

version
1.0.001
author

Nicola Asuni - info@tecnick.com

Table of Contents

$available_filters  : mixed
Define a list of available filter decoders.
decodeFilter()  : Decoded
Decode data using the specified filter type.
decodeFilterASCII85Decode()  : Decoded
ASCII85Decode Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data.
decodeFilterASCIIHexDecode()  : Decoded
ASCIIHexDecode Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data.
decodeFilterCCITTFaxDecode()  : Decoded
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).
decodeFilterCrypt()  : Decoded
Crypt (NOT IMPLEMETED - RETURN AN EXCEPTION) Decrypts data encrypted by a security handler, reproducing the data as it was before encryption.
decodeFilterDCTDecode()  : Decoded
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.
decodeFilterFlateDecode()  : Decoded
FlateDecode Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data.
decodeFilterJBIG2Decode()  : Decoded
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).
decodeFilterJPXDecode()  : Decoded
JPXDecode (NOT IMPLEMETED - RETURN AN EXCEPTION) Decompresses data encoded using the wavelet-based JPEG2000 standard, reproducing the original image data.
decodeFilterLZWDecode()  : Decoded
LZWDecode Decompresses data encoded using the LZW (Lempel-Ziv-Welch) adaptive compression method, reproducing the original text or binary data.
decodeFilterRunLengthDecode()  : mixed
RunLengthDecode Decompresses data encoded using a byte-oriented run-length encoding algorithm.
decodeFilterStandard()  : Decoded
Standard Default decoding filter (leaves data unchanged).
Error()  : mixed
Throw an exception.
getAvailableFilters()  : (array)
Get a list of available decoding filters.

Properties

$available_filters

Define a list of available filter decoders.

private static mixed $available_filters = array('ASCIIHexDecode', 'ASCII85Decode', 'LZWDecode', 'FlateDecode', 'RunLengthDecode')
Tags
private

static

Methods

decodeFilter()

Decode data using the specified filter type.

public static decodeFilter( $filter,  $data) : Decoded
Parameters
$filter :

(string) Filter name.

$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterASCII85Decode()

ASCII85Decode Decodes data encoded in an ASCII base-85 representation, reproducing the original binary data.

public static decodeFilterASCII85Decode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterASCIIHexDecode()

ASCIIHexDecode Decodes data encoded in an ASCII hexadecimal representation, reproducing the original binary data.

public static decodeFilterASCIIHexDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterCCITTFaxDecode()

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).

public static decodeFilterCCITTFaxDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterCrypt()

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

public static decodeFilterCrypt( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterDCTDecode()

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.

public static decodeFilterDCTDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterFlateDecode()

FlateDecode Decompresses data encoded using the zlib/deflate compression method, reproducing the original text or binary data.

public static decodeFilterFlateDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterJBIG2Decode()

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).

public static decodeFilterJBIG2Decode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterJPXDecode()

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

public static decodeFilterJPXDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterLZWDecode()

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

public static decodeFilterLZWDecode( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

decodeFilterRunLengthDecode()

RunLengthDecode Decompresses data encoded using a byte-oriented run-length encoding algorithm.

public static decodeFilterRunLengthDecode( $data) : mixed
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
mixed

decodeFilterStandard()

Standard Default decoding filter (leaves data unchanged).

public static decodeFilterStandard( $data) : Decoded
Parameters
$data :

(string) Data to decode.

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
Decoded

data string.

Error()

Throw an exception.

public static Error( $msg) : mixed
Parameters
$msg :

(string) The error message

Tags
since
1.0.000

(2011-05-23)

public

static

Return values
mixed

getAvailableFilters()

Get a list of available decoding filters.

public static getAvailableFilters() : (array)
Tags
since
1.0.000

(2011-05-23)

public

static

Return values
(array)

Array of available filter decoders.

 

© 2004-2021 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy