public class TextElement extends ContentElement implements IContentTextElement
| Modifier and Type | Field and Description |
|---|---|
protected TextDrawer |
textDrawer |
attributes, borderDrawer, document, elementRec, elementTag, isDrawElement, para| Constructor and Description |
|---|
TextElement(FormNode elementTag,
JsNode node,
XFARectangle elementRec,
com.itextpdf.text.Document document,
List<com.itextpdf.text.Element> richText,
FlattenerContext flattenerContext) |
TextElement(FormNode elementTag,
JsNode node,
XFARectangle elementRec,
com.itextpdf.text.Document document,
String plainText,
FlattenerContext flattenerContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
createColumnText(XFARectangle rec) |
PositionResult.State |
draw(com.itextpdf.text.pdf.PdfContentByte canvas,
XFARectangle parentBoundingBox) |
ArrayList<com.itextpdf.text.Element> |
getContent() |
TextDrawer |
getTextDrawer() |
XFARectangle |
getTextRectangle() |
boolean |
isEmpty() |
boolean |
isTagged() |
void |
move(float dx,
float dy) |
PositionResult |
simulatePosition(XFARectangle parentBoundingBox) |
drawBorder, drawBorder, getElementRec, setIsDrawElementprotected final TextDrawer textDrawer
public TextElement(FormNode elementTag, JsNode node, XFARectangle elementRec, com.itextpdf.text.Document document, String plainText, FlattenerContext flattenerContext)
public TextElement(FormNode elementTag, JsNode node, XFARectangle elementRec, com.itextpdf.text.Document document, List<com.itextpdf.text.Element> richText, FlattenerContext flattenerContext)
public void createColumnText(XFARectangle rec)
createColumnText in interface IContentTextElementpublic ArrayList<com.itextpdf.text.Element> getContent()
getContent in interface IContentTextElementpublic XFARectangle getTextRectangle()
getTextRectangle in interface IContentTextElementpublic TextDrawer getTextDrawer()
getTextDrawer in interface IContentTextElementpublic PositionResult.State draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
draw in class Elementcom.itextpdf.text.DocumentExceptionIOExceptionpublic PositionResult simulatePosition(XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
simulatePosition in class Elementcom.itextpdf.text.DocumentExceptionIOExceptionCopyright (C) 1998-2019 iText Group NV. All Rights Reserved.