TCPDF_ENGINE

TCPDF_ENGINE API reference

class TCPDF_ENGINE extends Tcpdf

Extends: Tcpdf

Source: tcpdf.php:8900

Properties

$pagecontexthook

Facade callback returning the raw PDF operators for the ambient text state to prepend to every new page content stream.

public callable|null $pagecontexthook = \null

Source: tcpdf.php:8908

Methods

closeCellBBoxWindow()

Stop counting and return the number of cell bounding boxes added since the window was opened, and their largest bottom edge ordinate (-INF when none was added).

public closeCellBBoxWindow(int $window): array{count: int, bottom: float}

Parameters:

  • $window (int)

Returns: array{count: int, bottom: float}

Source: tcpdf.php:8959

openCellBBoxWindow()

Start counting the cell bounding boxes added by the engine.

public openCellBBoxWindow(): int

Returns: int: Window id to pass to closeCellBBoxWindow().

Source: tcpdf.php:8945

setPageContext()

public setPageContext(int $pid = -1): void

Parameters:

  • $pid (int)

Source: tcpdf.php:8910