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
-
-
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
-