External

Fluent sub-facade for the external / remote signing workflow, reached through Tcpdf::signature()->external(). It forwards to the existing external-signing methods on Tcpdf.

Namespace: Com\Tecnick\Pdf\Signature

Final: Yes

File: External.php line 40

Fluent sub-facade for the external / remote signing workflow, reached through Tcpdf::signature()->external(). It forwards to the existing external-signing methods on Tcpdf.

Tags

Methods

__construct()

File: External.php line 42

public __construct(Tcpdf $pdf) : mixed

Parameters

apply()

File: External.php line 93

public apply(string $preparedPdf, array{int, int, int, int} $byteRange, string $signature[, string|ExternalSignatureEncoding $encoding = 'binary' ]) : string

Parameters

  • $preparedPdf : string: Prepared PDF returned by prepare().
  • $byteRange : array{int, int, int, int}: ByteRange returned by prepare().
  • $signature : string: External signature data.
  • $encoding : string|ExternalSignatureEncoding = ‘binary’: Signature encoding: binary, base64, hex, or enum case.

Tags

Return values

string —

Fully signed PDF document.

configure()

File: External.php line 53

public configure(TSignature $data) : self

Parameters

  • $data : TSignature: Signature configuration (signcert/privkey may be empty).

Tags

Return values

self

prepare()

File: External.php line 76

public prepare([string $algorithm = 'sha256' ]) : array{algorithm: string, byte_range: array{int, int, int, int}, prepared_pdf: string, hash_raw: string, hash_hex: string, hash_base64: string}

Parameters

  • $algorithm : string = ‘sha256’: Hash algorithm accepted by hash() (default: sha256).

Tags

Return values

array{algorithm: string, byte_range: array{int, int, int, int}, prepared_pdf: string, hash_raw: string, hash_hex: string, hash_base64: string}