public class Paragraph extends Object
| Constructor and Description |
|---|
Paragraph(String text,
org.apache.pdfbox.pdmodel.font.PDFont font,
float fontSize,
float width,
HorizontalAlignment align) |
Paragraph(String text,
org.apache.pdfbox.pdmodel.font.PDFont font,
float fontSize,
float width,
HorizontalAlignment align,
Color color,
TextType textType,
WrappingFunction wrappingFunction) |
Paragraph(String text,
org.apache.pdfbox.pdmodel.font.PDFont font,
float fontSize,
float width,
HorizontalAlignment align,
WrappingFunction wrappingFunction) |
Paragraph(String text,
org.apache.pdfbox.pdmodel.font.PDFont font,
int fontSize,
int width) |
| Modifier and Type | Method and Description |
|---|---|
HorizontalAlignment |
getAlign() |
int |
getColor()
Deprecated.
This method will be replaced by
public Color getColor() in a future release |
org.apache.pdfbox.pdmodel.font.PDFont |
getFont() |
org.apache.pdfbox.pdmodel.font.PDFont |
getFont(boolean isBold,
boolean isItalic) |
float |
getFontHeight() |
float |
getFontSize() |
float |
getFontWidth()
Deprecated.
This method will be removed in a future release
|
float |
getHeight() |
List<String> |
getLines() |
float |
getLineWidth(int key) |
Map<Integer,List<Token>> |
getMapLineTokens() |
float |
getMaxLineWidth() |
String |
getText() |
float |
getWidth() |
WrappingFunction |
getWrappingFunction() |
boolean |
isDrawDebug() |
void |
setAlign(HorizontalAlignment align) |
void |
setDrawDebug(boolean drawDebug) |
Paragraph |
withColor(int color)
Deprecated.
This method will be removed in a future release
|
Paragraph |
withFont(org.apache.pdfbox.pdmodel.font.PDFont font,
int fontSize)
Deprecated.
This method will be removed in a future release
|
Paragraph |
withWidth(int width)
Deprecated.
This method will be removed in a future release
|
float |
write(org.apache.pdfbox.pdmodel.PDPageContentStream stream,
float cursorX,
float cursorY) |
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align)
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, int fontSize, int width)
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, WrappingFunction wrappingFunction)
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, Color color, TextType textType, WrappingFunction wrappingFunction)
public org.apache.pdfbox.pdmodel.font.PDFont getFont(boolean isBold,
boolean isItalic)
public float write(org.apache.pdfbox.pdmodel.PDPageContentStream stream,
float cursorX,
float cursorY)
public float getHeight()
public float getFontHeight()
@Deprecated public float getFontWidth()
@Deprecated public Paragraph withWidth(int width)
@Deprecated public Paragraph withFont(org.apache.pdfbox.pdmodel.font.PDFont font, int fontSize)
@Deprecated public Paragraph withColor(int color)
@Deprecated public int getColor()
public Color getColor() in a future releasepublic float getWidth()
public String getText()
public float getFontSize()
public org.apache.pdfbox.pdmodel.font.PDFont getFont()
public HorizontalAlignment getAlign()
public void setAlign(HorizontalAlignment align)
public boolean isDrawDebug()
public void setDrawDebug(boolean drawDebug)
public WrappingFunction getWrappingFunction()
public float getMaxLineWidth()
public float getLineWidth(int key)
Copyright © 2016. All rights reserved.