Class PlainText
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.form.PlainText
-
class PlainText extends java.lang.ObjectA block of text.A block of text can contain multiple paragraphs which will be treated individually within the block placement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPlainText.LineAn individual line of text.(package private) static classPlainText.ParagraphA block of text to be formatted as a whole.(package private) static classPlainText.TextAttributeAttribute keys and attribute values used for text handling.(package private) static classPlainText.WordAn individual word.
-
Field Summary
Fields Modifier and Type Field Description private static floatFONTSCALEprivate java.util.List<PlainText.Paragraph>paragraphs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.List<PlainText.Paragraph>getParagraphs()Get the list of paragraphs.
-
-
-
Field Detail
-
FONTSCALE
private static final float FONTSCALE
- See Also:
- Constant Field Values
-
paragraphs
private final java.util.List<PlainText.Paragraph> paragraphs
-
-
Constructor Detail
-
PlainText
PlainText(java.lang.String textValue)
Construct the text block from a single value. Constructs the text block from a single value splitting into individualPlainText.Paragraphwhen a new line character is encountered.- Parameters:
textValue- the text block string.
-
PlainText
PlainText(java.util.List<java.lang.String> listValue)
Construct the text block from a list of values. Constructs the text block from a list of values treating each entry as an individualPlainText.Paragraph.- Parameters:
listValue- the text block string.
-
-
Method Detail
-
getParagraphs
java.util.List<PlainText.Paragraph> getParagraphs()
Get the list of paragraphs.- Returns:
- the paragraphs.
-
-