Package com.itextpdf.text.pdf.parser
Class FilteredTextRenderListener
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.FilteredRenderListener
-
- com.itextpdf.text.pdf.parser.FilteredTextRenderListener
-
- All Implemented Interfaces:
RenderListener
,TextExtractionStrategy
public class FilteredTextRenderListener extends FilteredRenderListener implements TextExtractionStrategy
A text render listener that filters text operations before passing them on to a delegate- Since:
- 5.0.1
-
-
Field Summary
Fields Modifier and Type Field Description private TextExtractionStrategy
delegate
The delegate that will receive the text render operation if the filters all pass
-
Constructor Summary
Constructors Constructor Description FilteredTextRenderListener(TextExtractionStrategy delegate, RenderFilter... filters)
Construction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResultantText()
This class delegates this call-
Methods inherited from class com.itextpdf.text.pdf.parser.FilteredRenderListener
beginTextBlock, endTextBlock, renderImage, renderText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.itextpdf.text.pdf.parser.RenderListener
beginTextBlock, endTextBlock, renderImage, renderText
-
-
-
-
Field Detail
-
delegate
private final TextExtractionStrategy delegate
The delegate that will receive the text render operation if the filters all pass
-
-
Constructor Detail
-
FilteredTextRenderListener
public FilteredTextRenderListener(TextExtractionStrategy delegate, RenderFilter... filters)
Construction- Parameters:
delegate
- the delegateRenderListener
that will receive filtered text operationsfilters
- the filter(s) to apply
-
-
Method Detail
-
getResultantText
public java.lang.String getResultantText()
This class delegates this call- Specified by:
getResultantText
in interfaceTextExtractionStrategy
- Returns:
- a String with the resulting text.
- See Also:
TextExtractionStrategy.getResultantText()
-
-