Class PlainText.Paragraph
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.layout.PlainText.Paragraph
-
- Enclosing class:
- PlainText
static class PlainText.Paragraph extends java.lang.Object
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 Modifier and Type Field Description private java.lang.String
textContent
-
Constructor Summary
Constructors Constructor Description Paragraph(java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.List<PlainText.Line>
getLines(PDFont font, float fontSize, float width)
Break the paragraph into individual lines.(package private) java.lang.String
getText()
Get the paragraph text.
-
-
-
Method Detail
-
getText
java.lang.String getText()
Get the paragraph text.- Returns:
- the text.
-
getLines
java.util.List<PlainText.Line> getLines(PDFont font, float fontSize, float width) throws java.io.IOException
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:
java.io.IOException
-
-