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

PDFFormattedContent Class Methods
In This Topic

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

Public Methods

| Name | Description
--- | --- | ---
| addParagraph | Overloaded. Add the paragraph at the end of the formatted content.
| clearWordWrapState | Clears the internal word wrap state.
| getCurrentWrapWidth | This method supports the internal library infrastructure and should not be used by external client code.
| getHeight | Gets the height of the formatted content. The method must be called before calling this method. This method can also be called after the formatted content has been drawn on the page.
| getIsPartialContent | This method supports the internal library infrastructure and should not be used by external client code.
| getParagraph | Gets the paragraph at the specified index.
| getParagraphHeights | Gets the height of each paragraph in the formatted content. The method must be called before calling this method. This method can also be called after the formatted content has been drawn on the page.
| getParagraphs | Gets the list of paragraphs.
| getStructureElement | Gets the structure element.
| getWidth | Gets the width of the formatted content. The method must be called before calling this method. This method can also be called after the formatted content has been drawn on the page.
| getWrappedLines | This method supports the internal library infrastructure and should not be used by external client code.
| setInternalWrapState | This method supports the internal library infrastructure and should not be used by external client code.
| setStructureElement | Sets the structure element. When a formatted content object has an associated structure element, the paragraphs within the formatted content should not have their own structure elements otherwise the content will be tagged incorrectly.
| splitByBox | Overloaded. Gets the formatted content that fits in the given box. This method modifies the current object, the formatted content that fits the given box is removed from current object and returned as a new object.
| toString | Returns a string that represents the current Object.
| wrap | Executes a wrap operation on the formatted content at the specified width.
| zInternalMethod41 | Overloaded. This method supports the internal library infrastructure and should not be used by external client code.
| zInternalMethod42 | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

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

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.