Crypt

Crypt filter (PDF 32000-1:2008 §7.4.10). When DecodeParms/Name is absent, Identity or None, the stream is passed through unchanged (PDF 32000-1:2008 §7.6.5). Any other name identifies a crypt filter of the document /CF dictionary, which this library does not apply: decoding throws instead.

Table of contents

Namespace: Com\Tecnick\Pdf\Filter\Type

Implements: Template

File: Crypt.php line 40

Crypt filter (PDF 32000-1:2008 §7.4.10). When DecodeParms/Name is absent, Identity or None, the stream is passed through unchanged (PDF 32000-1:2008 §7.6.5). Any other name identifies a crypt filter of the document /CF dictionary, which this library does not apply: decoding throws instead.

Tags

Methods

decode()

File: Crypt.php line 53

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

Parameters

  • $data : string: Data to decode.
  • $params : array<string, mixed> = []: Optional DecodeParms dictionary. - ‘Name’ (string): crypt filter name; only Identity and None are supported.

Tags

  • throws: Exception if a crypt filter other than Identity or None is requested.

Return values

string —

Decoded data.