Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Class PdfPageTextElement

java.lang.Object
  extended bycom.gnostice.pdfone.PdfPageElement
      extended bycom.gnostice.pdfone.PdfPageTextElement

public class PdfPageTextElement
extends PdfPageElement

This class represents a text page element.

See Also:
PdfProDocument.getPageElements(int, int)

Field Summary
 
Fields inherited from class com.gnostice.pdfone.PdfPageElement
ELEMENT_TYPE_ALL, ELEMENT_TYPE_COMPOSITE, ELEMENT_TYPE_IMAGE, ELEMENT_TYPE_INLINE_IMAGE, ELEMENT_TYPE_PATH, ELEMENT_TYPE_TEXT
 
Method Summary
 Rectangle2D getBoundingRectForCharAt(int index)
          Returns bounding box of specified character in the text element.
 ArrayList getCharBoundingRects()
          Returns list of bounding boxes of characters in the text element.
 float getFontSize()
          Returns font size of the text element.
 float getScaledFontSize()
           
 String getText()
          Returns actual text represented by the text element.
 PdfTextFontInfo getTextFontInfo()
          Returns information related to the font used by the text element.
 PdfTextState getTextState()
          Returns information related to the text and font used by the text element.
 boolean isTextRotated()
          Returns whether the text element is rotated.
 void setCharBoundingRectsWithCharSpaceList(ArrayList charBoundingRectsWithCharSpaceList)
          Specifies bounding boxes for characters in the text represented by the text elements.
 String toString()
           
 
Methods inherited from class com.gnostice.pdfone.PdfPageElement
getBoundingRect, getElementType, getFillColor, getGraphicsState, getPageNum, getStrokeColor, getTransformationMatrix, getX, getY, isAtPoint, isAtRect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getText

public String getText()
Returns actual text represented by the text element.

Returns:
actual text represented by the text element

getCharBoundingRects

public ArrayList getCharBoundingRects()
Returns list of bounding boxes of characters in the text element.

Returns:
list of bounding boxes of the characters

getTextFontInfo

public PdfTextFontInfo getTextFontInfo()
Returns information related to the font used by the text element.

Returns:
font information of the text element

getFontSize

public float getFontSize()
Returns font size of the text element.

Returns:
font size of the text element

getScaledFontSize

public float getScaledFontSize()

getTextState

public PdfTextState getTextState()
Returns information related to the text and font used by the text element.

Returns:
information related to the text and font used by the text element

getBoundingRectForCharAt

public Rectangle2D getBoundingRectForCharAt(int index)
Returns bounding box of specified character in the text element.

Parameters:
index - index of the character in the text element
Returns:
bounding box of the specified character

isTextRotated

public boolean isTextRotated()
Returns whether the text element is rotated.

Returns:
true if rotated; false if otherwise

toString

public String toString()
Overrides:
toString in class PdfPageElement

setCharBoundingRectsWithCharSpaceList

public void setCharBoundingRectsWithCharSpaceList(ArrayList charBoundingRectsWithCharSpaceList)
Specifies bounding boxes for characters in the text represented by the text elements.

Parameters:
charBoundingRectsWithCharSpaceList - bounding boxes for the characters

Gnostice PDFOne
Pro. Ed. v5.0.0

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