static class PlainText.Paragraph
extends java.lang.Object
A block of text can contain multiple paragraphs which will be treated individually within the block placement.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
textContent |
Constructor and Description |
---|
Paragraph(java.lang.String text) |
Modifier and Type | Method and 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.
|
java.lang.String getText()
java.util.List<PlainText.Line> getLines(PDFont font, float fontSize, float width) throws java.io.IOException
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.java.io.IOException