StampPosition
in package
Predefined stamp positions on a page.
Table of Contents
Cases
Methods
- computeCoordinates() : array{float, float}
- Compute X/Y coordinates for text placement given page dimensions and margins.
Cases
TopLeft
TopCenter
TopRight
Center
BottomLeft
BottomCenter
BottomRight
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]