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

Static Public Member Functions

static getAvailableFilters ()
 
static decodeFilter ($filter, $data)
 
static decodeFilterStandard ($data)
 
static decodeFilterASCIIHexDecode ($data)
 
static decodeFilterASCII85Decode ($data)
 
static decodeFilterLZWDecode ($data)
 
static decodeFilterFlateDecode ($data)
 
static decodeFilterRunLengthDecode ($data)
 
static decodeFilterCCITTFaxDecode ($data)
 
static decodeFilterJBIG2Decode ($data)
 
static decodeFilterDCTDecode ($data)
 
static decodeFilterJPXDecode ($data)
 
static decodeFilterCrypt ($data)
 
static Error ($msg)
 
static getAvailableFilters ()
 
static decodeFilter ($filter, $data)
 
static decodeFilterStandard ($data)
 
static decodeFilterASCIIHexDecode ($data)
 
static decodeFilterASCII85Decode ($data)
 
static decodeFilterLZWDecode ($data)
 
static decodeFilterFlateDecode ($data)
 
static decodeFilterRunLengthDecode ($data)
 
static decodeFilterCCITTFaxDecode ($data)
 
static decodeFilterJBIG2Decode ($data)
 
static decodeFilterDCTDecode ($data)
 
static decodeFilterJPXDecode ($data)
 
static decodeFilterCrypt ($data)
 
static Error ($msg)
 

Static Private Attributes

static $available_filters = array(‘ASCIIHexDecode’, ‘ASCII85Decode’, ‘LZWDecode’, ‘FlateDecode’, ‘RunLengthDecode’)
 

Detailed Description

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

Member Function Documentation

static TCPDF_FILTERS::decodeFilter (   $filter,
  $data 
)
static

Decode data using the specified filter type.

Parameters
$filter(string) Filter name.
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilter (   $filter,
  $data 
)
static

Decode data using the specified filter type.

Parameters
$filter(string) Filter name.
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterASCII85Decode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterASCII85Decode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterASCIIHexDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterASCIIHexDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterCCITTFaxDecode (   $data)
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).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterCCITTFaxDecode (   $data)
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).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterCrypt (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterCrypt (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterDCTDecode (   $data)
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.

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterDCTDecode (   $data)
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.

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterFlateDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterFlateDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterJBIG2Decode (   $data)
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).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterJBIG2Decode (   $data)
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).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterJPXDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterJPXDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterLZWDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterLZWDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterRunLengthDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterRunLengthDecode (   $data)
static

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

Parameters
$data(string) Data to decode.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterStandard (   $data)
static

Standard Default decoding filter (leaves data unchanged).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::decodeFilterStandard (   $data)
static

Standard Default decoding filter (leaves data unchanged).

Parameters
$data(string) Data to decode.
Returns
Decoded data string.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::Error (   $msg)
static

Throw an exception.

Parameters
$msg(string) The error message
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::Error (   $msg)
static

Throw an exception.

Parameters
$msg(string) The error message
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::getAvailableFilters ( )
static

Get a list of available decoding filters.

Returns
(array) Array of available filter decoders.
Since
1.0.000 (2011-05-23) static

static TCPDF_FILTERS::getAvailableFilters ( )
static

Get a list of available decoding filters.

Returns
(array) Array of available filter decoders.
Since
1.0.000 (2011-05-23) static

Member Data Documentation

static TCPDF_FILTERS::$available_filters = array(‘ASCIIHexDecode’, ‘ASCII85Decode’, ‘LZWDecode’, ‘FlateDecode’, ‘RunLengthDecode’)
staticprivate

Define a list of available filter decoders. static


The documentation for this class was generated from the following file:

 

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