Table of contents
Namespace: Com\Tecnick\Pdf\HTML
trait TcpdfTag
Source: src/HTML/TcpdfTag.php:40
HTML <tcpdf> tag method calls.
Methods
serializeHTMLTcpdfTag()
Serialize a method call for a TCPDF tag (<tcpdf data="…" />).
The payload is signed with a random key of this instance: only payloads created by the same instance are accepted when the HTML is rendered.
Format: <hlen>+<hmac>+<urlencoded-json>, where the JSON is {’m’: method, ‘p’: params}.
public serializeHTMLTcpdfTag(string $method, array<array-key,mixed> $params = []): string
Parameters:
$method(string): Method name.$params(array<array-key,mixed>): Method parameters.
Returns: string: Serialized data, or an empty string if the parameters cannot be encoded.
Source: src/HTML/TcpdfTag.php:55