class TCPDF_ENGINE extends Tcpdf (View source)

Properties

Closure(): string|null $pagecontexthook

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

Methods

void
setPageContext(int $pid = -1)

No description

int
openCellBBoxWindow()

Start counting the cell bounding boxes added by the engine.

array
closeCellBBoxWindow(int $window)

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).

void
pushCellBBox(array $box)

Adds the cell box to the tally of every open window.

void
anchorPageRegionsToContentTop(int $pid)

Anchor the page regions (columns) at the content top margin.

Details

void setPageContext(int $pid = -1)

No description

Parameters

int $pid

Return Value

void

int openCellBBoxWindow()

Start counting the cell bounding boxes added by the engine.

Return Value

int

Window id to pass to closeCellBBoxWindow().

array closeCellBBoxWindow(int $window)

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).

Parameters

int $window

Return Value

array

protected void pushCellBBox(array $box)

Adds the cell box to the tally of every open window.

Parameters

array $box

Cell bounding box in user units.

Return Value

void

protected void anchorPageRegionsToContentTop(int $pid)

Anchor the page regions (columns) at the content top margin.

Pages opened by the engine's internal flows clone the previous page data, including regions that may start mid-page (legacy columns set on the page where they were defined): on every following page the columns restart at the top margin (legacy selectColumn() behavior). The region list of an existing page has no mutator, so the adjusted data is written directly into the page store.

Parameters

int $pid

Return Value

void