PDFPAGE_UnicodeTextOutBox2
IPDFDocument3 :: PDF page methods

See Also
Collapse All

This method draws wrapped unicode text bounded by a rectangle. It also allows justification of the text.

Syntax

HRESULT PDFPAGE_UnicodeTextOutBox2 (
DOUBLE x,
DOUBLE y,
DOUBLE boxWidth,
DOUBLE boxHeight,
TxHorJust horizontalJustification,
TxVertJust verticalJustification,
BSTR contents,
LONG* charactersInOutput
)
Parameters
x
X coordinate of the top-left corner of the bounding rectangle

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

boxWidth
Width of the bounding rectangle

boxHeight
Height of the bounding rectangle

horizontalJustification
Horizontal justification

verticalJustification
Vertical justification

contents
Text to be displayed

charactersInOutput
Pointer to the location where the length of the string that was successfully drawn in the "box" will be written to

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 inside the bounding rectangle with left-top corner at (left, top), with box size (boxWidth, boxHeight), and with the horizontal and vertical justifications specified.

Equivalent in new interface: IPDFDocument4::ShowUnicodeTextLines.

See Also

Reference