JbigTwo

JBIG2Decode filter (PDF 32000-1:2008 §7.4.7). Decompresses JBIG2 bi-level image data with the jbig2dec CLI tool (https://jbig2dec.sourceforge.net/), which must be installed and on PATH.

Table of contents

Namespace: Com\Tecnick\Pdf\Filter\Type

Implements: Template

File: JbigTwo.php line 38

JBIG2Decode filter (PDF 32000-1:2008 §7.4.7). Decompresses JBIG2 bi-level image data with the jbig2dec CLI tool (https://jbig2dec.sourceforge.net/), which must be installed and on PATH.

Tags

Methods

decode()

File: JbigTwo.php line 51

public decode(string $data[, array<string, mixed> $params = [] ]) : string

Parameters

  • $data : string: Data to decode.
  • $params : array<string, mixed> = []: Optional DecodeParms dictionary. - ‘JBIG2Globals’ (string): shared JBIG2 segments referenced by the page stream.

Tags

  • throws: Exception if jbig2dec is not found or exits with an error.

Return values

string —

Decoded data.