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 |
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 |
getContent() |
TextDrawer |
getTextDrawer() |
XFARectangle |
getTextRectangle() |
boolean |
isEmpty() |
boolean |
isTagged() |
void |
move(float dx, float dy) |
PositionResult |
simulatePosition(XFARectangle parentBoundingBox) |
drawBorder, drawBorder, getElementRec, setIsDrawElement
protected 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, ListrichText, FlattenerContext flattenerContext)
public void createColumnText(XFARectangle rec)
createColumnText
in interface IContentTextElement
public ArrayListgetContent()
getContent
in interface IContentTextElement
public XFARectangle getTextRectangle()
getTextRectangle
in interface IContentTextElement
public TextDrawer getTextDrawer()
getTextDrawer
in interface IContentTextElement
public PositionResult.State draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
draw
in class Element
com.itextpdf.text.DocumentException
IOException
public PositionResult simulatePosition(XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
simulatePosition
in class Element
com.itextpdf.text.DocumentException
IOException
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.