Gnostice PDFOne
Pro. Ed. v5.4


com.gnostice.pdfone
Class PdfSearchElement

java.lang.Object
  extended by com.gnostice.pdfone.PdfSearchElement

public class PdfSearchElement
extends Object

This class represents a result of a page element search operation.

See Also:
PdfProDocument.search(int, String, int, int)

Method Summary
 Rectangle2D getBoundingRect()
          Deprecated. Instead get the bounding rectangles from the list of BoundingRect elements using getBoundingRects()
 ArrayList getBoundingRects()
          Returns list of bounding rectangles of the search element which may have spanned across lines or pages.
 ArrayList getCharBoundingRects()
          Deprecated. Instead get the bounding rectangles of the characters from the list of BoundingRect elements using getBoundingRects()
 int getIndexOfMatchStringInLine()
          Returns index of the search string in the text element containing it.
 String getLineContainingMatchString()
          Returns actual text of the text element containing the search text.
 String getMatchString()
          Returns actual text of the search string found by by the search.
 int getPageNum()
          Deprecated. Instead get the page number from the list of BoundingRect elements using getBoundingRects()
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getPageNum

public int getPageNum()
Deprecated. Instead get the page number from the list of BoundingRect elements using getBoundingRects()


getBoundingRect

public Rectangle2D getBoundingRect()
Deprecated. Instead get the bounding rectangles from the list of BoundingRect elements using getBoundingRects()


getCharBoundingRects

public ArrayList getCharBoundingRects()
Deprecated. Instead get the bounding rectangles of the characters from the list of BoundingRect elements using getBoundingRects()


getMatchString

public String getMatchString()
Returns actual text of the search string found by by the search.

Returns:
actual text of the search string found by by the search

getLineContainingMatchString

public String getLineContainingMatchString()
Returns actual text of the text element containing the search text.

Returns:
actual text of the text element containing the search text

getIndexOfMatchStringInLine

public int getIndexOfMatchStringInLine()
Returns index of the search string in the text element containing it.

Returns:
index of the search string in the text element

getBoundingRects

public ArrayList getBoundingRects()
Returns list of bounding rectangles of the search element which may have spanned across lines or pages.

Returns:
list of bounding rectangles of the search element

Gnostice PDFOne
Pro. Ed. v5.4

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2015 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com