Dompdf\Adapter\PDFLib::page_text
Writes text at the specified x and y coordinates on every page
The strings '{PAGE_NUM}' and '{PAGE_COUNT}' are automatically replaced with their current values. See for the format of the color array.
Signature
public function page_text(float
$x,
float
$y,
string
$text,
string
$font,
float
$size,
[array
$color = ,
[float
$word_space = 0.0,
[float
$char_space = 0.0,
[float
$angle = 0.0]]]] )
Parameters
$x
— float$y
— float$text
— string- the text to write
$font
— string- the font file to use
$size
— float- the font size, in points
$color
— array$word_space
— float- word spacing adjustment
$char_space
— float- char spacing adjustment
$angle
— float- angle to write the text at, measured CW starting from the x-axis