PageAreaFilter class
Leave feedback
On this page
Represents redaction filter, setting an area within a page of a document to apply redaction.
Learn more
- More details about applying redactions: https://docs.groupdocs.com/redaction/net/redaction-basics/
- More details about redaction filters: https://docs.groupdocs.com/redaction/net/use-pdf-redaction-filters/
The PageAreaFilter type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new PageAreaFilter for redacting a specific area. |
| Property | Description |
|---|---|
| rectangle | The rectangle (top-left position and size of the area) on a page. |
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import PageAreaFilter
from groupdocs.pydrawing import Point, Size
with Redactor("doc.pdf") as redactor:
page = redactor.get_document_info().pages[0]
area_filter = PageAreaFilter(
Point(0, int(page.height / 2)),
Size(page.width, int(page.height / 2))
)
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.