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
-
Method Summary
Modifier and TypeMethodDescriptionint
Get 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:
-
getRectangle
in interfaceIPdfTextLocation
- Returns:
-
the visual
Rectangle
in which the text is located
-
setRectangle
-
getText
- Specified by:
-
getText
in interfaceIPdfTextLocation
- Returns:
- the text
-
setText
-
getPageNumber
public int getPageNumber()Description copied from interface:IPdfTextLocation
Get the page number of the page on which the text is located- Specified by:
-
getPageNumber
in interfaceIPdfTextLocation
- Returns:
- the page number, or 0 if no page number was set
-
setPageNr
-