PageAreaFilter
Leave feedback
On this page
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
- More details about applying redactions: Redaction basics
- More details about redaction filters: Use PDF redaction filters
| Constructor | Description |
|---|---|
| PageAreaFilter(Point topLeft, Dimension size) | Initializes a new instance of PageAreaFilter class for redacting specific area. |
| 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. |
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 |
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.
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
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.