Jpx

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.

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

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.