Table of Contents

Class SimpleTextExtractionStrategy

Namespace
iText.Kernel.Pdf.Canvas.Parser.Listener
Assembly
itext.kernel.dll
public class SimpleTextExtractionStrategy : ITextExtractionStrategy, IEventListener
Inheritance
SimpleTextExtractionStrategy
Implements
Inherited Members

Constructors

SimpleTextExtractionStrategy()

public SimpleTextExtractionStrategy()

Methods

AppendTextChunk(string)

Used to actually append text to the text results.

protected void AppendTextChunk(string text)

Parameters

text string

the text to append to the text results accumulated so far

Remarks

Used to actually append text to the text results. Subclasses can use this to insert text that wouldn't normally be included in text parsing (e.g. result of OCR performed against image content)

EventOccurred(IEventData, EventType)

public virtual void EventOccurred(IEventData data, EventType type)

Parameters

data IEventData
type EventType

GetResultantText()

Returns the result so far.

public virtual string GetResultantText()

Returns

string

a String with the resulting text.

GetSupportedEvents()

public virtual ICollection<EventType> GetSupportedEvents()

Returns

ICollection<EventType>