Table of contents
Namespace: Com\Tecnick\Pdf\Signature
Backing type: string
File: ExternalSignatureEncoding.php line 37
Backed enum for the encoding of an externally-produced signature value passed to Tcpdf::applyExternalSignature(): binary, base64 or hex.
Tags
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-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
Cases
Binary
File: ExternalSignatureEncoding.php line 39
Base64
File: ExternalSignatureEncoding.php line 41
Hex
File: ExternalSignatureEncoding.php line 43
Methods
fromLoose()
File: ExternalSignatureEncoding.php line 56
public static fromLoose(string|self $value) : self
Accepts the canonical name (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Unknown values throw, matching applyExternalSignature().
Parameters
- $value : string|self: Signature encoding or enum case.
Tags
- throws: Exception if the value is not a known signature encoding.
Return values
self