PageAreaFilter class

PageAreaFilter class

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

Learn more

The PageAreaFilter type exposes the following members:

Constructors

Constructor Description
init Initializes a new PageAreaFilter for redacting a specific area.

Properties

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

Example

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))
    )

See Also