Enum Class TextRenderMode

java.lang.Object
java.lang.Enum<TextRenderMode>
com.datalogics.PDFL.TextRenderMode
All Implemented Interfaces:
Serializable, Comparable<TextRenderMode>, Constable

public enum TextRenderMode extends Enum<TextRenderMode>
Text rendering mode determines whether text shown will have glyph outlines stroked, filled, used as a clipping path boundary, or feature some combination of those three values.

Text may also be hidden (invisible).

Fill sets the color inside an object. Stroke sets the color of the line drawn around that object.

With a PDF file, clipping paths define closed shapes, lines, and boundaries for clip art or graphics, and they define filled areas within graphics. A clipping path can be used to edit a graphic design by removing part of the art, so that only the shapes outlined by the path appear. You could use a clipping path to remove the background in a photo or superimpose text on an image.

  • Enum Constant Details

    • FILL

      public static final TextRenderMode FILL
    • STROKE

      public static final TextRenderMode STROKE
    • FILL_THEN_STROKE

      public static final TextRenderMode FILL_THEN_STROKE
    • INVISIBLE

      public static final TextRenderMode INVISIBLE
    • FILL_AND_ADD_TO_CLIP_PATH

      public static final TextRenderMode FILL_AND_ADD_TO_CLIP_PATH
    • STROKE_AND_ADD_TO_CLIP_PATH

      public static final TextRenderMode STROKE_AND_ADD_TO_CLIP_PATH
    • FILL_THEN_STROKE_AND_ADD_TO_CLIP_PATH

      public static final TextRenderMode FILL_THEN_STROKE_AND_ADD_TO_CLIP_PATH
    • INVISIBLE_ADD_TO_CLIP_PATH

      public static final TextRenderMode INVISIBLE_ADD_TO_CLIP_PATH
  • Method Details

    • values

      public static TextRenderMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextRenderMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null