Table of contents
Namespace: Com\Tecnick\Pdf\Signature
enum ExternalSignatureEncoding: string
Source: src/Signature/ExternalSignatureEncoding.php:37
Backed enum for the encoding of an externally-produced signature value passed to Tcpdf::applyExternalSignature(): binary, base64 or hex.
Cases
Methods
fromLoose()
Resolve a loose signature encoding value to the matching enum case.
Accepts the canonical name (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Unknown values throw, matching applyExternalSignature().
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Signature encoding or enum case.
Returns: self
Throws:
- Exception: if the value is not a known signature encoding.