com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class MarkupParagraph



  • public final class MarkupParagraph
    extends Object

    Represents a paragraph.

    • Method Detail

      • 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:
        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:
        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:
        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:
        list of TextFragment instances
      • getLines

        public List<com.aspose.ms.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:
        list of TextFragment instances
      • getText

        public String getText()

        Gets string text object that the MarkupParagraph object represents.

        Returns:
        String value