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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the page number of the page on which the text is locatedgetText()setPageNr(int pageNr) setRectangle(Rectangle rectangle)
-
Constructor Details
-
DefaultPdfTextLocation
-
-
Method Details
-
getRectangle
- Specified by:
-
getRectanglein interfaceIPdfTextLocation - Returns:
-
the visual
Rectanglein which the text is located
-
setRectangle
-
getText
- Specified by:
-
getTextin interfaceIPdfTextLocation - Returns:
- the text
-
setText
-
getPageNumber
public int getPageNumber()Description copied from interface:IPdfTextLocationGet the page number of the page on which the text is located- Specified by:
-
getPageNumberin interfaceIPdfTextLocation - Returns:
- the page number, or 0 if no page number was set
-
setPageNr
-