Table of Contents

Class TextMarginFinder

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

This class allows you to find the rectangle which contains all the text in the given content stream.

public class TextMarginFinder : IEventListener
Inheritance
TextMarginFinder
Implements
Inherited Members

Constructors

TextMarginFinder()

public TextMarginFinder()

Methods

EventOccurred(IEventData, EventType)

public virtual void EventOccurred(IEventData data, EventType type)

Parameters

data IEventData
type EventType

GetSupportedEvents()

public virtual ICollection<EventType> GetSupportedEvents()

Returns

ICollection<EventType>

GetTextRectangle()

Returns the common text rectangle, containing all the text found in the stream so far, ot null , if no text has been found yet.

public virtual Rectangle GetTextRectangle()

Returns

Rectangle

common text rectangle