PageAreaFilter

Inheritance: java.lang.Object, com.groupdocs.redaction.redactions.RedactionFilter

public class PageAreaFilter extends RedactionFilter

Represents redaction filter, setting an area within a page of a document to apply redaction.


Learn more

Constructors

Constructor Description
PageAreaFilter(Point topLeft, Dimension size) Initializes a new instance of PageAreaFilter class for redacting specific area.

Methods

Method Description
getRectangle() Gets the rectangle (top-left position and size of the area) on a page.
isInTheArea(Rectangle rectangle) Checks if this filter area has intersection with given rectangle.

PageAreaFilter(Point topLeft, Dimension size)

public PageAreaFilter(Point topLeft, Dimension size)

Initializes a new instance of PageAreaFilter class for redacting specific area.

Parameters:

Parameter Type Description
topLeft java.awt.Point Top-left area coordinates
size java.awt.Dimension Area size and color

getRectangle()

public final Rectangle getRectangle()

Gets the rectangle (top-left position and size of the area) on a page.

Returns: java.awt.Rectangle - The rectangle (top-left position and size of the area) on a page.

isInTheArea(Rectangle rectangle)

public final boolean isInTheArea(Rectangle rectangle)

Checks if this filter area has intersection with given rectangle.

Parameters:

Parameter Type Description
rectangle java.awt.Rectangle Rectangle to check

Returns: boolean - true, if this filter area has intersection