PDFPAGE_UnicodeTextBox
IPDFDocument3 :: PDF page methods

See Also
Collapse All

This method draws unicode text bounded by a rectangle. If the text does not fit in the box, it is cropped. To fit unicode text in the box using wrapping, call PDFPAGE_UnicodeTextOutBox.

Syntax

HRESULT PDFPAGE_UnicodeTextBox (
DOUBLE left,
DOUBLE top,
DOUBLE right,
DOUBLE bottom,
BSTR text,
TxHorJust horizontalJustification,
TxVertJust verticalJustification
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

text
Unicode text to be displayed

horizontalJustification
Horizontal justification

verticalJustification
Vertical justification

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a unicode text string (using the current font) inside an area bounded by a rectangle, with (left, top) and (right, bottom) coordinates for top-left and bottom-right corners, and with horizontal and vertical justification.

Equivalent in new interface: IPDFDocument4::ShowUnicodeTextAligned.

See Also

Reference