Class AddText

java.lang.Object
org.jpedal.manipulator.AddText
All Implemented Interfaces:
org.jpedal.manipulator.Manipulation

public class AddText extends Object implements org.jpedal.manipulator.Manipulation
Adds text to a document
  • Constructor Details

    • AddText

      public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b)
      Adds text to the specified page.

      This method only supports strings using WinAnsiEncoding.

      Parameters:
      pages - the pages to draw text on
      text - the text to draw
      x - the horizontal starting position of the text
      y - the vertical starting position of the text
      baseFontName - the name of the base font to use. See BaseFont
      fontSize - the font size of the text
      r - the red color component
      g - the green color component
      b - the blue color component
    • AddText

      public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a)
      Adds text to the specified page.

      This method only supports strings using WinAnsiEncoding.

      Parameters:
      pages - the pages to draw text on
      text - the text to draw
      x - the horizontal starting position of the text
      y - the vertical starting position of the text
      baseFontName - the name of the base font to use. See BaseFont
      fontSize - the font size of the text
      r - the red color component
      g - the green color component
      b - the blue color component
      a - the transparency component
    • AddText

      public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a, float theta)
      Adds text to the specified page.

      This method only supports strings using WinAnsiEncoding.

      Parameters:
      pages - the pages to draw text on
      text - the text to draw
      x - the horizontal starting position of the text
      y - the vertical starting position of the text
      baseFontName - the name of the base font to use. See BaseFont
      fontSize - the font size of the text
      r - the red color component
      g - the green color component
      b - the blue color component
      a - the transparency component
      theta - the angle that the text will be drawn at, in degrees