Table of contents
Namespace: Com\Tecnick\Pdf\Import
interface PageTemplateInterface
Source: src/Import/PageTemplateInterface.php:37
Contract for an immutable value object representing a page imported as a Form XObject.
Types
PageBox
array{0: float, 1: float, 2: float, 3: float}
Methods
getHeight()
Height of the imported page in PDF user units (points).
public getHeight(): float
Returns: float
Source: src/Import/PageTemplateInterface.php:52
getMediaBox()
Effective page box as [x0, y0, x1, y1] in points.
public getMediaBox(): array<int,float>
Returns: array<int,float>
Source: src/Import/PageTemplateInterface.php:74
getRotation()
Page rotation in degrees (0, 90, 180, 270).
public getRotation(): int
Returns: int
Source: src/Import/PageTemplateInterface.php:57
getSourceId()
Stable identifier of the source document this template was imported from.
public getSourceId(): string
Returns: string
Source: src/Import/PageTemplateInterface.php:62
getSourcePage()
1-based page number in the source document.
public getSourcePage(): int
Returns: int
Source: src/Import/PageTemplateInterface.php:67
getWidth()
Width of the imported page in PDF user units (points).
public getWidth(): float
Returns: float
Source: src/Import/PageTemplateInterface.php:47
getXobjId()
XObject template ID (e.g. “IMP1”) used to reference the Form XObject in content streams.
public getXobjId(): string
Returns: string