Class PlaceHolderTextUtil

java.lang.Object
com.itextpdf.commons.utils.PlaceHolderTextUtil

public final class PlaceHolderTextUtil extends Object
This class is used to generate placeholder text for the examples and tests. It is not used anywhere in the actual code. This provides a better way than using Lorem Ipsum text as it is more readable.
  • Method Details

    • getPlaceHolderText

      public static String getPlaceHolderText (PlaceHolderTextUtil.PlaceHolderTextBy by, int amount)
      Gets the placeholder text.
      Parameters:
      by - if you want to get the placeholder text by words or by characters
      amount - the number of words or characters
      Returns:
      the placeholder text