Table of contents
Namespace: Com\Tecnick\Pdf\Filter\Type
Implements: Template
File: Jpx.php line 38
JPXDecode filter (PDF 32000-1:2008 §7.4.9). Decompresses JPEG 2000 (JP2/JPX) image data with the Imagick extension (ext-imagick) and returns it as a PNG image.
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: Jpx.php line 50
public decode(string $data[, array<string, mixed> $params = [] ]) : string
Parameters
- $data : string: Data to decode.
- $params : array<string, mixed> = []: Optional DecodeParms dictionary.
Tags
- throws: Exception if the Imagick extension is not loaded or decoding fails.
Return values
string —
Decoded PNG image bytes.