Package com.itextpdf.commons.utils
Class PlaceHolderTextUtil
java.lang.Object
com.itextpdf.commons.utils.PlaceHolderTextUtil
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The enum Place holder text by. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPlaceHolderText
(PlaceHolderTextUtil.PlaceHolderTextBy by, int amount) Gets the placeholder text.
-
Method Details
-
getPlaceHolderText
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
-