MarkupParagraph
Inheritance: java.lang.Object
public final class MarkupParagraph
Represents a paragraph.
Methods
Method | Description |
---|---|
getPoints() | Points of polygon that describes paragraph. |
getSecondaryPoints() | Points of secondary polygon describes paragraph continuation. |
getContinuationPageNumbers() | List of page numbers on which the paragraph is continued. |
getFragments() | Collection of not empty TextFragment objects of the paragraph. |
getLines() | Lines of paragraph. |
getText() | Gets string text object that the MarkupParagraph object represents. |
getPoints()
public Point[] getPoints()
Points of polygon that describes paragraph. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence.
Returns: com.aspose.pdf.Point[] - array of Point instances
getSecondaryPoints()
public final List<Point[]> getSecondaryPoints()
Points of secondary polygon describes paragraph continuation. It will not be null if the paragraph is continued in the next column or page. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence.
Returns: java.util.List<com.aspose.pdf.Point[]> - list of Point[]
getContinuationPageNumbers()
public final List<Integer> getContinuationPageNumbers()
List of page numbers on which the paragraph is continued. It will match with page where the paragraph started if it is continuing in the next column on the same page.
Returns: java.util.List<java.lang.Integer> - list of Integer
getFragments()
public List<TextFragment> getFragments()
Collection of not empty TextFragment objects of the paragraph.
The TextFragment object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc).
Returns: java.util.List<com.aspose.pdf.TextFragment> - list of TextFragment instances
getLines()
public List<System.Collections.Generic.List<TextFragment>> getLines()
Lines of paragraph. Each line represented by list of text fragments.
The TextFragment object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc).
Returns: java.util.List<com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.TextFragment» - list of TextFragment instances
getText()
public String getText()
Gets string text object that the MarkupParagraph object represents.
Returns: java.lang.String - String value