Class PlainText.Paragraph
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.form.PlainText.Paragraph
- Enclosing class:
- PlainText
A block of text to be formatted as a whole.
A block of text can contain multiple paragraphs which will be treated individually within the block placement.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
textContent
-
-
Constructor Details
-
Paragraph
Paragraph(String text)
-
-
Method Details
-
getText
String getText()Get the paragraph text.- Returns:
- the text.
-
getLines
Break the paragraph into individual lines.- Parameters:
font
- the font used for rendering the text.fontSize
- the fontSize used for rendering the text.width
- the width of the box holding the content.- Returns:
- the individual lines.
- Throws:
IOException
-