status, len = page:TextRect(left, top, right, bottom, text, align)
page:TextRect()
prints the text inside the specified region.
The align
parameter must be one of the following constants:
#HPDF_TALIGN_LEFT
#HPDF_TALIGN_RIGHT
#HPDF_TALIGN_CENTER
#HPDF_TALIGN_JUSTIFY