iText 8.0.2 API
iText.Kernel.Pdf.Canvas.Parser.Listener.TextMarginFinder Class Reference

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

Inheritance diagram for iText.Kernel.Pdf.Canvas.Parser.Listener.TextMarginFinder:
iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener

Public Member Functions

virtual void  EventOccurred (IEventData data, EventType type)
  Called when some event occurs during parsing a content stream. More...
 
virtual ICollection< EventType GetSupportedEvents ()
  Provides the set of event types this listener supports. More...
 
virtual Rectangle  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. More...
 

Detailed Description

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

Member Function Documentation

◆ EventOccurred()

virtual void iText.Kernel.Pdf.Canvas.Parser.Listener.TextMarginFinder.EventOccurred ( IEventData  data,
EventType  type 
)
inlinevirtual

Called when some event occurs during parsing a content stream.

Parameters
data Combines the data required for processing corresponding event type.
type Event type.

Implements iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.

◆ GetSupportedEvents()

virtual ICollection<EventType> iText.Kernel.Pdf.Canvas.Parser.Listener.TextMarginFinder.GetSupportedEvents ( )
inlinevirtual

Provides the set of event types this listener supports.

Provides the set of event types this listener supports. Returns null if all possible event types are supported.

Returns
Set of event types supported by this listener or null if all possible event types are supported.

Implements iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.

◆ GetTextRectangle()

virtual Rectangle iText.Kernel.Pdf.Canvas.Parser.Listener.TextMarginFinder.GetTextRectangle ( )
inlinevirtual

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

Returns
common text rectangle