phpdftk API Documentation

StampPosition
in package

Predefined stamp positions on a page.

Table of Contents

Cases

BottomCenter
BottomLeft
BottomRight
Center
TopCenter
TopLeft
TopRight

Methods

computeCoordinates()  : array{float, float}
Compute X/Y coordinates for text placement given page dimensions and margins.

Cases

Methods

computeCoordinates()

Compute X/Y coordinates for text placement given page dimensions and margins.

public computeCoordinates(float $pageWidth, float $pageHeight, float $contentWidth, float $contentHeight[, float $margin = 36.0 ]) : array{float, float}
Parameters
$pageWidth : float
$pageHeight : float
$contentWidth : float
$contentHeight : float
$margin : float = 36.0
Return values
array{float, float}

[x, y]


        
On this page

Search results