com.itextpdf.text.pdf.parser
Class RegionTextRenderFilter

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.RenderFilter
      extended by com.itextpdf.text.pdf.parser.RegionTextRenderFilter

public class RegionTextRenderFilter
extends RenderFilter

A RenderFilter that only allows text within a specified rectangular region

Since:
5.0.1

Field Summary
private  Rectangle filterRect
          the region to allow text from
 
Constructor Summary
RegionTextRenderFilter(Rectangle filterRect)
          Constructs a filter
 
Method Summary
 boolean allowText(TextRenderInfo renderInfo)
           
 
Methods inherited from class com.itextpdf.text.pdf.parser.RenderFilter
allowImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterRect

private final Rectangle filterRect
the region to allow text from

Constructor Detail

RegionTextRenderFilter

public RegionTextRenderFilter(Rectangle filterRect)
Constructs a filter

Parameters:
filterRect - the rectangle to filter text against. Note that this is a java.awt.Rectangle !
Method Detail

allowText

public boolean allowText(TextRenderInfo renderInfo)
Overrides:
allowText in class RenderFilter
Returns:
true if the text render operation should be performed
See Also:
RenderFilter.allowText(com.itextpdf.text.pdf.parser.TextRenderInfo)

Hosted by Hostbasket