Table of contents
Namespace: Com\Tecnick\Pdf\Encrypt
Abstract: Yes
File: Output.php line 73
Generates the PDF encryption dictionary.
Tags
- since: 2008-01-02
- 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-encrypt
- phpstan-type: TEncryptData array{ ‘CF’: array{ ‘AuthEvent’: string, ‘CFM’: string, ‘EncryptMetadata’: bool, ‘Length’: int, }, ‘EFF’: string, ‘EncryptMetadata’: bool, ‘Filter’: string, ‘Length’: int, ‘O’: string, ‘OE’: string, ‘OKS’: string, ‘OVS’: string, ‘P’: int, ‘R’: int, ‘Recipients’: array, ‘StmF’: string, ‘StrF’: string, ‘SubFilter’: string, ‘U’: string, ‘UE’: string, ‘UKS’: string, ‘UVS’: string, ‘V’: int, ’encrypted’: bool, ‘fileid’: string, ‘key’: string, ‘mode’: int, ‘objid’: int, ‘owner_password’: string, ‘perms’: string, ‘protection’: int, ‘pubkey’: bool, ‘pubkeys’?: list<array{‘c’:string, ‘p’?:array}>, ‘user_password’: string, }
Methods
__debugInfo()
File: Output.php line 131
public __debugInfo() : array<string, mixed>
Return values
array<string, mixed>
escapeString()
File: Output.php line 146
public escapeString(string $str) : string
Parameters
- $str : string: String to escape.
Return values
string
getPdfEncryptionObj()
File: Output.php line 186
public getPdfEncryptionObj(int &$pon) : string
Parameters
- $pon : int: Current PDF object number
Tags
- throws: Exception When encryption is not enabled.
Return values
string