Filter

Decoder for the PDF stream filters (PDF 32000-1:2008 §7.4).

Namespace: Com\Tecnick\Pdf\Filter

File: Filter.php line 34

Decoder for the PDF stream filters (PDF 32000-1:2008 §7.4).

Tags

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

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

Return values

string —

Decoded data.