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

This class is designed to search for the occurrences of a regular expression and return the resultant rectangles. More...

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

Public Member Functions

  RegexBasedLocationExtractionStrategy (String regex)
 
  RegexBasedLocationExtractionStrategy (Regex pattern)
 
virtual ICollection< IPdfTextLocation GetResultantLocations ()
  Returns the iText.Kernel.Geom.Rectangle s that have been processed so far. More...
 
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...
 

Detailed Description

This class is designed to search for the occurrences of a regular expression and return the resultant rectangles.

Member Function Documentation

◆ EventOccurred()

virtual void iText.Kernel.Pdf.Canvas.Parser.Listener.RegexBasedLocationExtractionStrategy.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.

◆ GetResultantLocations()

virtual ICollection<IPdfTextLocation> iText.Kernel.Pdf.Canvas.Parser.Listener.RegexBasedLocationExtractionStrategy.GetResultantLocations ( )
inlinevirtual

Returns the iText.Kernel.Geom.Rectangle s that have been processed so far.

Returns

System.Collections.ICollection < IPdfTextLocation > instance with the current resultant IPdfTextLocations

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

◆ GetSupportedEvents()

virtual ICollection<EventType> iText.Kernel.Pdf.Canvas.Parser.Listener.RegexBasedLocationExtractionStrategy.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.