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
FieldsModifier and TypeFieldDescriptionprivate final TextExtractionStrategy
The delegate that will receive the text render operation if the filters all pass -
Constructor Summary
ConstructorsConstructorDescriptionFilteredTextRenderListener
(TextExtractionStrategy delegate, RenderFilter... filters) Construction -
Method Summary
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 Details
-
delegate
The delegate that will receive the text render operation if the filters all pass
-
-
Constructor Details
-
FilteredTextRenderListener
Construction- Parameters:
delegate
- the delegateRenderListener
that will receive filtered text operationsfilters
- the filter(s) to apply
-
-
Method Details
-
getResultantText
This class delegates this call- Specified by:
getResultantText
in interfaceTextExtractionStrategy
- Returns:
- a String with the resulting text.
- See Also:
-