ExternalSignatureEncoding

Backed enum for the encoding of an externally-produced signature value passed to Tcpdf::applyExternalSignature(): binary, base64 or hex.

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

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