PageRangeFilter class

PageRangeFilter class

Represents redaction filter, setting page range inside a document to apply redaction.

The PageRangeFilter type exposes the following members:

Constructors

Constructor Description
init Initializes a new RemovePageRedaction.

Properties

Property Description
count The count of pages to remove.
index The start position index (0-based).
origin The seek reference position, either the beginning or the end of a document.

Example

from groupdocs.redaction.redactions import PageRangeFilter, PageSeekOrigin

# Define a filter that targets the last page and the one before it
page_filter = PageRangeFilter(PageSeekOrigin.END, 0, 1)

# The filter can be combined with other filters, e.g., PageAreaFilter,
# and passed to ReplacementOptions.Filters when configuring a redaction.

See Also