class PlainTextFormatter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PlainTextFormatter.Builder |
(package private) static class |
PlainTextFormatter.TextAlign |
Modifier and Type | Field and Description |
---|---|
private AppearanceStyle |
appearanceStyle |
private PDPageContentStream |
contents |
private static int |
FONTSCALE
The scaling factor for font units to PDF units
|
private float |
horizontalOffset |
private PlainTextFormatter.TextAlign |
textAlignment |
private PlainText |
textContent |
private float |
verticalOffset |
private float |
width |
private boolean |
wrapLines |
Modifier | Constructor and Description |
---|---|
private |
PlainTextFormatter(PlainTextFormatter.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
format()
Format the text block.
|
private void |
processLines(java.util.List<PlainText.Line> lines,
boolean isFirstParagraph)
Process lines for output.
|
private static final int FONTSCALE
private final AppearanceStyle appearanceStyle
private final boolean wrapLines
private final float width
private final PDPageContentStream contents
private final PlainText textContent
private final PlainTextFormatter.TextAlign textAlignment
private float horizontalOffset
private float verticalOffset
private PlainTextFormatter(PlainTextFormatter.Builder builder)
public void format() throws java.io.IOException
java.io.IOException
- if there is an error writing to the stream.private void processLines(java.util.List<PlainText.Line> lines, boolean isFirstParagraph) throws java.io.IOException
lines
- the lines to process.java.io.IOException
- if there is an error writing to the stream.