Package com.itextpdf.text.pdf.parser
Class RegionTextRenderFilter
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.RenderFilter
-
- com.itextpdf.text.pdf.parser.RegionTextRenderFilter
-
public class RegionTextRenderFilter extends RenderFilter
ARenderFilterthat only allows text within a specified rectangular region- Since:
- 5.0.1
-
-
Field Summary
Fields Modifier and Type Field Description private Rectangle2DfilterRectthe region to allow text from
-
Constructor Summary
Constructors Constructor Description RegionTextRenderFilter(Rectangle2D filterRect)Constructs a filterRegionTextRenderFilter(Rectangle filterRect)Constructs a filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowText(TextRenderInfo renderInfo)-
Methods inherited from class com.itextpdf.text.pdf.parser.RenderFilter
allowImage
-
-
-
-
Field Detail
-
filterRect
private final Rectangle2D filterRect
the region to allow text from
-
-
Constructor Detail
-
RegionTextRenderFilter
public RegionTextRenderFilter(Rectangle2D filterRect)
Constructs a filter- Parameters:
filterRect- the rectangle to filter text against. Note that this is a com.itextpdf.text.geom.Rectangle !
-
RegionTextRenderFilter
public RegionTextRenderFilter(Rectangle filterRect)
Constructs a filter- Parameters:
filterRect- the rectangle to filter text against.
-
-
Method Detail
-
allowText
public boolean allowText(TextRenderInfo renderInfo)
- Overrides:
allowTextin classRenderFilter- Returns:
- true if the text render operation should be performed
- See Also:
RenderFilter.allowText(com.itextpdf.text.pdf.parser.TextRenderInfo)
-
-