Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.text » [javadoc | source]
org.apache.pdfbox.pdmodel.text
public class: PDTextState [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.text.PDTextState

All Implemented Interfaces:
    Cloneable

This class will hold the current state of the text parameters when executing a content stream.
Field Summary
public static final  int RENDERING_MODE_FILL_TEXT    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_STROKE_TEXT    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_FILL_THEN_STROKE_TEXT    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_NEITHER_FILL_NOR_STROKE_TEXT    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_FILL_TEXT_AND_ADD_TO_PATH_FOR_CLIPPING    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_STROKE_TEXT_AND_ADD_TO_PATH_FOR_CLIPPING    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_FILL_THEN_STROKE_TEXT_AND_ADD_TO_PATH_FOR_CLIPPING    See PDF Reference 1.5 Table 5.3. 
public static final  int RENDERING_MODE_ADD_TEXT_TO_PATH_FOR_CLIPPING    See PDF Reference 1.5 Table 5.3. 
Method from org.apache.pdfbox.pdmodel.text.PDTextState Summary:
clone,   getCharacterSpacing,   getFont,   getFontSize,   getHorizontalScalingPercent,   getKnockoutFlag,   getLeading,   getRenderingMode,   getRise,   getWordSpacing,   setCharacterSpacing,   setFont,   setFontSize,   setHorizontalScalingPercent,   setKnockoutFlag,   setLeading,   setRenderingMode,   setRise,   setWordSpacing
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.text.PDTextState Detail:
 public Object clone() 
    {@inheritDoc}
 public float getCharacterSpacing() 
    Get the value of the characterSpacing.
 public PDFont getFont() 
    Get the value of the font.
 public float getFontSize() 
    Get the value of the fontSize.
 public float getHorizontalScalingPercent() 
    Get the value of the horizontalScaling. The default is 100. This value is the percentage value 0-100 and not 0-1. So for mathematical operations you will probably need to divide by 100 first.
 public boolean getKnockoutFlag() 
    Get the value of the knockout.
 public float getLeading() 
    Get the value of the leading.
 public int getRenderingMode() 
    Get the value of the renderingMode.
 public float getRise() 
    Get the value of the rise.
 public float getWordSpacing() 
    Get the value of the wordSpacing.
 public  void setCharacterSpacing(float value) 
    Set the value of the characterSpacing.
 public  void setFont(PDFont value) 
    Set the value of the font.
 public  void setFontSize(float value) 
    Set the value of the fontSize.
 public  void setHorizontalScalingPercent(float value) 
    Set the value of the horizontalScaling.
 public  void setKnockoutFlag(boolean value) 
    Set the value of the knockout.
 public  void setLeading(float value) 
    Set the value of the leading.
 public  void setRenderingMode(int value) 
    Set the value of the renderingMode.
 public  void setRise(float value) 
    Set the value of the rise.
 public  void setWordSpacing(float value) 
    Set the value of the wordSpacing.