TCPDF_FILTERS

class

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

package

com.tecnick.tcpdf

brief

This is a PHP class for decoding common PDF filters.

version 1.0.001
author

Nicola Asuni - info@tecnick.com

Methods

Decode data using the specified filter type.

decodeFilter(string $filter,string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$filter

string

Filter name.

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterASCII85Decode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterASCIIHexDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterCCITTFaxDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterCrypt(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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.

decodeFilterDCTDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterFlateDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterJBIG2Decode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterJPXDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterLZWDecode(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

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

decodeFilterRunLengthDecode(string $data)
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Standard Default decoding filter (leaves data unchanged).

decodeFilterStandard(string $data): string
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$data

string

Data to decode.

Response

string

Decoded data string.

Throw an exception.

Error(string $msg)
static
since 1.0.000

(2011-05-23)

public

static

Arguments

$msg

string

The error message

Get a list of available decoding filters.

getAvailableFilters(): array
static
since 1.0.000

(2011-05-23)

public

static

Response

array

Array of available filter decoders.

Properties

Define a list of available filter decoders.

available_filters :
static
private

static

Type(s)