Name
page:TextRect -- print text inside region
Synopsis
status, len = page:TextRect(left, top, right, bottom, text, align)
Function
page:TextRect() prints the text inside the specified region.

The align parameter must be one of the following constants:

#HPDF_TALIGN_LEFT
The text is aligned to left.

#HPDF_TALIGN_RIGHT
The text is aligned to right.

#HPDF_TALIGN_CENTER
The text is centered.

#HPDF_TALIGN_JUSTIFY
Add spaces between the words to justify both left and right side.

Inputs
left
left coordinate of region
top
top coordinate of region
right
right coordinate of region
bottom
bottom coordinate of region
text
the text to show
align
the alignment of the text (one of the following)
Results
status
status code
len
the number of characters printed in the area

Show TOC