__init__ constructor

init

Initializes a new ResourcesRedactionAnnotation instance.

def __init__(self):
    ...

Example

from groupdocs.annotation import Annotator
from groupdocs.annotation.models import Rectangle
from groupdocs.annotation.models.annotation_models import ResourcesRedactionAnnotation

with Annotator("./sample.pdf") as annotator:
    redaction = ResourcesRedactionAnnotation()
    redaction.box = Rectangle(100, 100, 200, 80)
    redaction.page_number = 0
    redaction.message = "This is a resources redaction annotation"
    annotator.add(redaction)
    annotator.save("./output.pdf")

See Also