Class PlainText
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.layout.PlainText
A block of text.
A block of text can contain multiple paragraphs which will be treated individually within the block placement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAn individual line of text.(package private) static classA block of text to be formatted as a whole.(package private) static classAttribute keys and attribute values used for text handling.(package private) static classAn individual word. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate final List<PlainText.Paragraph> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List<PlainText.Paragraph>Get the list of paragraphs.
-
Field Details
-
FONTSCALE
private static final float FONTSCALE- See Also:
-
paragraphs
-
-
Constructor Details
-
PlainText
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
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 Details
-
getParagraphs
List<PlainText.Paragraph> getParagraphs()Get the list of paragraphs.- Returns:
- the paragraphs.
-