PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFStringLayoutOptions Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFStringLayoutOptions Class Methods
In This Topic

For a list of all members of this type, see PDFStringLayoutOptions members.

Public Methods

| Name | Description
--- | --- | ---
| getForceLongWordsWrap | Gets a flag indicating whether long words should wrap if they do not fit entirely on a single line.
| getHeight | Gets the height of rectangle that defines the text location. The text is cut when its height is greater than this height. If this is 0 or negative, its value is ignored and the text overflows.
| getHorizontalAlign | Gets the horizontal alignment of text.
| getLineSpacingAdjustment | Gets the line spacing adjustment. This value is added to default line spacing in order to increase or decrease the spacing between lines of text in a text box.
| getRotation | Gets the rotation angle of the text. The text is rotated counterclockwise.
| getTextDirection | Gets the text direction.
| getVerticalAlign | Gets the vertical alignment of text. The anchor point depends on the horizontal text alignment.
| getWidth | Gets the width of rectangle that defines the text location. The text is automatically wrapped when the text width is greater than this width. If this is 0 or negative, its value is ignored and the text is not wrapped.
| getX | Gets the X coordinate of the text anchor point.
| getY | Gets the Y coordinate of the text anchor point. The anchor point depends on the vertical text alignment.
| setForceLongWordsWrap | Sets a flag indicating whether long words should wrap if they do not fit entirely on a single line.
| setHeight | Sets the height of rectangle that defines the text location. The text is cut when its height is greater than this height. If this is 0 or negative, its value is ignored and the text overflows.
| setHorizontalAlign | Sets the horizontal alignment of text.
| setLineSpacingAdjustment | Sets the line spacing adjustment. This value is added to default line spacing in order to increase or decrease the spacing between lines of text in a text box.
| setRotation | Sets the rotation angle of the text. The text is rotated counterclockwise.
| setTextDirection | Sets the text direction.
| setVerticalAlign | Sets the vertical alignment of text. The anchor point depends on the horizontal text alignment.
| setWidth | Sets the width of rectangle that defines the text location. The text is automatically wrapped when the text width is greater than this width. If this is 0 or negative, its value is ignored and the text is not wrapped.
| setX | Sets the X coordinate of the text anchor point.
| setY | Sets the Y coordinate of the text anchor point. The anchor point depends on the vertical text alignment.

Top
See Also

#### Reference

PDFStringLayoutOptions Class
com.o2sol.pdf4java.graphics Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.