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

PDFFormattedParagraph Class Methods
In This Topic

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

Public Methods

| Name | Description
--- | --- | ---
| addBlock | Adds the formatted block at the end of the paragraph
| buildShapedWordBlocks | This method supports the internal library infrastructure and should not be used by external client code.
| buildSimpleWordBlocks | This method supports the internal library infrastructure and should not be used by external client code.
| getBackgroundBaselineOffset | Gets the background baseline offset. The offset is given in PDF points. By default the background baseline matches the text baseline. If you want to lower it so that it covers the descent part of the text, you can set it to a negative value.
| getBackgroundColor | Gets the background color.
| getBlock | Gets the formatted block at the specified index
| getBlocks | Gets the list of formatted blocks that compose this paragraph.
| getBullet | Gets the bullet text. If this property is set to a object then the paragraph is considered to be part of a bulleted list.
| getFirstLineIndent | Gets the indentation of the first paragraph line.
| getHorizontalAlign | Gets the horizontal align.
| getLeftIndentation | Gets the left indentation.
| getLineSpacing | Gets the line spacing in points. >When the method is called with the value of the line spacing is specified in this method. When the method is called with the value of the line spacing is computed by multiplying the current line height with the value specified in this property.
| getLineSpacingMode | Gets the line spacing for the paragraph. When this property is set to the value of the line spacing is specified in method. When this property is set to the value of the line spacing is computed by multiplying the current line height with the value specified in method.
| getRightIndentation | Gets the right indentation.
| getSpacingAfter | Gets the spacing after the paragraph.
| getSpacingBefore | Gets the spacing before the paragraph.
| getStructureElement | Gets the structure element. When a paragraph has an associated structure element, the blocks within the paragraph should not have their own structure elements otherwise the content will be tagged incorrectly. The structure element does not include the so a structure element needs to be set on it.
| getTextDirection | Gets the text direction.
| requiresTextShaping | This method supports the internal library infrastructure and should not be used by external client code.
| setBackgroundBaselineOffset | Sets the background baseline offset. The offset is given in PDF points. By default the background baseline matches the text baseline. If you want to lower it so that it covers the descent part of the text, you can set it to a negative value.
| setBackgroundColor | Sets the background color.
| setBullet | Sets the bullet text. If this property is set to a object then the paragraph is considered to be part of a bulleted list.
| setFirstLineIndent | Sets the indentation of the first paragraph line.
| setHorizontalAlign | Sets the horizontal align.
| setLeftIndentation | Sets the left indentation.
| setLineSpacing | Sets the line spacing in points. >When the method is called with the value of the line spacing is specified in this method. When the method is called with the value of the line spacing is computed by multiplying the current line height with the value specified in this property.
| setLineSpacingMode | Sets the line spacing for the paragraph. When this property is set to the value of the line spacing is specified in method. When this property is set to the value of the line spacing is computed by multiplying the current line height with the value specified in method.
| setRightIndentation | Sets the right indentation.
| setSpacingAfter | Sets the spacing after the paragraph.
| setSpacingBefore | Sets the spacing before the paragraph.
| setStructureElement | Sets the structure element. When a paragraph has an associated structure element, the blocks within the paragraph should not have their own structure elements otherwise the content will be tagged incorrectly. The structure element does not include the so a structure element needs to be set on it.
| setTextDirection | Sets the text direction.
| toString | Returns a string that represents the current Object.
| wrap | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

PDFFormattedParagraph Class
com.o2sol.pdf4java.graphics.formattedcontent Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.