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
- 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: 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.