Table of Contents

Interface IPdfTextLocation

Namespace
iText.Kernel.Pdf.Canvas.Parser.Listener
Assembly
itext.kernel.dll

Instances of this interface represent a piece of text, somewhere on a page in a pdf document.

public interface IPdfTextLocation

Methods

GetPageNumber()

Get the page number of the page on which the text is located

int GetPageNumber()

Returns

int

the page number, or 0 if no page number was set

GetRectangle()

Rectangle GetRectangle()

Returns

Rectangle

the visual Rectangle in which the text is located

GetText()

string GetText()

Returns

string

the text