| Package | Description |
|---|---|
| rst.pdfbox.layout.elements | |
| rst.pdfbox.layout.text |
| Modifier and Type | Class and Description |
|---|---|
class |
Paragraph
A paragraph is used as a container for
text that is drawn as
one element. |
| Modifier and Type | Method and Description |
|---|---|
protected TextFlow |
TextFlow.createInstance() |
protected static TextFlow |
TextFlowUtil.createTextFlow(Iterable<CharSequence> parts,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont plainFont,
org.apache.pdfbox.pdmodel.font.PDFont boldFont,
org.apache.pdfbox.pdmodel.font.PDFont italicFont,
org.apache.pdfbox.pdmodel.font.PDFont boldItalicFont)
Actually creates the text flow from the given (markup) text.
|
static TextFlow |
TextFlowUtil.createTextFlow(String text,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont font)
Creates a text flow from the given text.
|
static TextFlow |
TextFlowUtil.createTextFlowFromMarkup(String markup,
float fontSize,
BaseFont baseFont)
Convenience alternative to
TextFlowUtil.createTextFlowFromMarkup(String, float, PDFont, PDFont, PDFont, PDFont)
which allows to specifies the fonts to use by using the BaseFont
enum. |
static TextFlow |
TextFlowUtil.createTextFlowFromMarkup(String markup,
float fontSize,
org.apache.pdfbox.pdmodel.font.PDFont plainFont,
org.apache.pdfbox.pdmodel.font.PDFont boldFont,
org.apache.pdfbox.pdmodel.font.PDFont italicFont,
org.apache.pdfbox.pdmodel.font.PDFont boldItalicFont)
Creates a text flow from the given text.
|
static TextFlow |
TextSequenceUtil.deWrap(TextSequence text)
De-wraps the given text, means any new lines introduced by wrapping will
be removed.
|
TextFlow |
TextFlow.removeLeadingEmptyLines() |
static TextFlow |
TextSequenceUtil.splitWords(TextFragment text)
Splits the fragment into words.
|
static TextFlow |
TextSequenceUtil.wordWrap(TextSequence text,
float maxWidth)
Word-wraps the given text sequence in order to fit the max width.
|
Copyright © 2022. All rights reserved.