Package com.pdfjet

Class TextParameters

java.lang.Object
com.pdfjet.TextParameters

public class TextParameters extends Object
The font, font size, location and text for Stamp.drawText.
  • Constructor Details

    • TextParameters

      public TextParameters()
      Creates text parameters with a font size of 12, located at (0, 0).
  • Method Details

    • setFont

      public TextParameters setFont(Font font)
      Sets the font.
      Parameters:
      font - the font.
      Returns:
      this TextParameters object.
    • setFontSize

      public TextParameters setFontSize(float fontSize)
      Sets the font size.
      Parameters:
      fontSize - the font size.
      Returns:
      this TextParameters object.
    • setLocation

      public TextParameters setLocation(float x, float y)
      Sets the location of the text.
      Parameters:
      x - the x coordinate.
      y - the y coordinate.
      Returns:
      this TextParameters object.
    • setText

      public TextParameters setText(String text)
      Sets the text.
      Parameters:
      text - the text.
      Returns:
      this TextParameters object.