Com\Tecnick\Pdf\Filter\Filter
PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters)
Tags
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