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
-
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.
-
Constructor Details
-
DefaultPdfTextLocation
Creates new pdf text location.- Parameters:
-
rect- text rectangle on pdf canvas -
text- actual text on designated area of canvas
-
-
Method Details
-
getRectangle
- Specified by:
-
getRectanglein interfaceIPdfTextLocation - Returns:
-
the visual
Rectanglein which the text is located
-
setRectangle
Sets text rectangle (occupied area) for this pdf text location.- Parameters:
-
rectangle- new text rectangle - Returns:
-
this
DefaultPdfTextLocationinstance
-
getText
- Specified by:
-
getTextin interfaceIPdfTextLocation - Returns:
- the text
-
setText
Sets text for this pdf text location.- Parameters:
-
text- new text - Returns:
-
this
DefaultPdfTextLocationinstance
-