classes-Com-Tecnick-Pdf-Filter-Filter

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.

Com\Tecnick\Pdf\Filter\Filter

PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters)

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-filter

Table of Contents

$filtermap  : array<string|int, mixed>
Define a list of available filter decoders.
decode()  : string
Decode data using the specified filter type.
decodeAll()  : string
Decode the input data using multiple filters

Properties

$filtermap

Define a list of available filter decoders.

private static array<string|int, mixed> $filtermap = array('ASCIIHexDecode' => 'AsciiHex', 'ASCII85Decode' => 'AsciiEightFive', 'LZWDecode' => 'Lzw', 'FlateDecode' => 'Flate', 'RunLengthDecode' => 'RunLength', 'CCITTFaxDecode' => 'CcittFax', 'JBIG2Decode' => 'JbigTwo', 'DCTDecode' => 'Dct', 'JPXDecode' => 'Jpx', 'Crypt' => 'Crypt')

Methods

decode()

Decode data using the specified filter type.

public decode(string $filter, string $data) : string
Parameters
$filter : string

Filter name.

$data : string

Data to decode.

Return values
string

Decoded data string.

decodeAll()

Decode the input data using multiple filters

public decodeAll(array<string|int, mixed> $filters, string $data) : string
Parameters
$filters : array<string|int, mixed>

Array of decoding filters to apply in order

$data : string

Data to decode.

Return values
string

Decoded data

 

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