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