Table of contents
Namespace: Com\Tecnick\Pdf\Filter
File: Filter.php line 34
Decoder for the PDF stream filters (PDF 32000-1:2008 §7.4).
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-filter
Methods
decode()
File: Filter.php line 47
public decode(string|FilterType $filter, string $data[, array<string, mixed> $params = [] ]) : string
Parameters
- $filter : string|FilterType: Filter name or FilterType case; an empty name is a pass-through.
- $data : string: Data to decode.
- $params : array<string, mixed> = []: Optional DecodeParms dictionary for the filter.
Tags
- throws: Exception
Return values
string —
Decoded data.
decodeAll()
File: Filter.php line 87
public decodeAll(array<string|int, string|FilterType> $filters, string $data[, array<string|int, mixed> $params = [] ]) : string
Parameters
- $filters : array<string|int, string|FilterType>: Filters to apply in order.
- $data : string: Data to decode.
- $params : array<string|int, mixed> = []: Optional DecodeParms: a single dictionary applied to every filter, or a list holding one dictionary (or null) per filter, consumed positionally, as /DecodeParms parallel to /Filter. An entry that is not a dictionary leaves the corresponding filter without parameters.
Tags
- throws: Exception
Return values
string —
Decoded data.