Class DefaultPdfTextLocation
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.listener.DefaultPdfTextLocation
- All Implemented Interfaces:
IPdfTextLocation
This class acts as a default implementation of IPdfTextLocation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPdfTextLocation
(Rectangle rect, String text) Creates new pdf text location. -
Method Summary
Modifier and TypeMethodDescriptiongetText()
setRectangle
(Rectangle rectangle) Sets text rectangle (occupied area) for this pdf text location.Sets text for this pdf text location.
-
Field Details
-
rectangle
-
text
-
-
Constructor Details
-
DefaultPdfTextLocation
Creates new pdf text location.- Parameters:
rect
- text rectangle on pdf canvastext
- actual text on designated area of canvas
-
-
Method Details
-
getRectangle
- Specified by:
getRectangle
in interfaceIPdfTextLocation
- Returns:
- the visual
Rectangle
in which the text is located
-
setRectangle
Sets text rectangle (occupied area) for this pdf text location.- Parameters:
rectangle
- new text rectangle- Returns:
- this
DefaultPdfTextLocation
instance
-
getText
- Specified by:
getText
in interfaceIPdfTextLocation
- Returns:
- the text
-
setText
Sets text for this pdf text location.- Parameters:
text
- new text- Returns:
- this
DefaultPdfTextLocation
instance
-