com.pdftools.expa
Class Text

java.lang.Object
  extended by com.pdftools.NativeLibrary
      extended by com.pdftools.expa.ExpaInitialize
          extended by com.pdftools.expa.Text

public class Text
extends ExpaInitialize


Nested Class Summary
 
Nested classes/interfaces inherited from class com.pdftools.expa.ExpaInitialize
ExpaInitialize.CONTENTOBJECT, ExpaInitialize.ORIENTATION, ExpaInitialize.Rectangle, ExpaInitialize.TransformMatrix
 
Nested classes/interfaces inherited from class com.pdftools.NativeLibrary
NativeLibrary.COLORCONVERSION, NativeLibrary.COLORSPACE, NativeLibrary.COMPRESSION, NativeLibrary.DITHERINGMODE, NativeLibrary.ERRORCODE, NativeLibrary.FONTTYPE, NativeLibrary.PERMISSION, NativeLibrary.RENDEREROPTION, NativeLibrary.RENDERINGMODE, NativeLibrary.ROTATEMODE, NativeLibrary.STRIPTYPE
 
Field Summary
 
Fields inherited from class com.pdftools.NativeLibrary
VERSION
 
Constructor Summary
Text()
           
 
Method Summary
 float[] getBoundingBox()
          get the smallest rectangle that encloses the text string.
 float getFontSize()
          get the font size in points.
 float getRotation()
          get the rotation of the text in rad units.
 int getStringLength()
          get the number of characters contained in the text string.
 java.lang.String getUnicodeString()
          get the unicode string.
 float getWidth()
          get the width of the text in points.
 float[] getXPos()
          get the horizontal positions of the string in user coordinates.
 float[] getYPos()
          get the vertical positions of the string in user coordinates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

getStringLength

public int getStringLength()
get the number of characters contained in the text string.

Returns:
the number of characters contained in the text string.

getUnicodeString

public java.lang.String getUnicodeString()
get the unicode string.

Returns:
the unicode string, having getStringLength() elements, and terminated with 0x0000

getXPos

public float[] getXPos()
get the horizontal positions of the string in user coordinates.

Returns:
the horizontal positions of the string in user coordinates.

getYPos

public float[] getYPos()
get the vertical positions of the string in user coordinates.

Returns:
the vertical positions of the string in user coordinates.

getFontSize

public float getFontSize()
get the font size in points.

Returns:
the font size in points.

getWidth

public float getWidth()
get the width of the text in points.

Returns:
the width of the text in points.

getRotation

public float getRotation()
get the rotation of the text in rad units.

Returns:
the rotation of the text in rad units.

getBoundingBox

public float[] getBoundingBox()
get the smallest rectangle that encloses the text string.

Returns:
the smallest rectangle that encloses the text string.