__init__ constructor

On this page

init

Initializes a new RemovePageRedaction.

def __init__(self, origin, index, count):
    ...
Parameter Type Description
origin PageSeekOrigin Seek reference position, the beginning or the end of a document.
index int Start position index (0‑based).
count int Count of pages to remove.

Example

from groupdocs.redaction.redactions import RemovePageRedaction, PageSeekOrigin

# Remove 3 pages starting from the second page (zero‑based index 1)
redaction = RemovePageRedaction(PageSeekOrigin.BEGIN, 1, 3)

See Also

On this page