ResourcesRedactionAnnotation class
Leave feedback
On this page
Represents resources redaction annotation properties.
Learn more:
- More about annotation types and annotating PDF and Microsoft Word documents, Excel spreadsheets and PowerPoint Presentations: https://docs.groupdocs.com/display/annotationnet/Add+annotation+to+the+document
- More about adding resource redaction annotations to documents of various types: https://docs.groupdocs.com/display/annotationnet/Add+resource+redaction+annotation
The ResourcesRedactionAnnotation type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new ResourcesRedactionAnnotation instance. |
| Method | Description |
|---|---|
| clone | Returns a new instance with the same values. |
| equals | Compares resource redaction annotation using IEquatable Equals method. |
| equals | Compares resource redaction annotation using standard object Equals method. |
| equals_object | |
| equals_resources_redaction_annotation | |
| get_hash_code | Returns the hash code of the resource redaction annotation. |
| equals_annotation_base | (inherited from AnnotationBase) |
| Property | Description |
|---|---|
| box | The resource redaction annotation position as a Rectangle. |
| created_on | The annotation creation date. (inherited from AnnotationBase) |
| id | The annotation unique identifier. This field is auto-incremented. (inherited from AnnotationBase) |
| message | The annotation message. (inherited from AnnotationBase) |
| page_number | The page number where the annotation should be located. (inherited from AnnotationBase) |
| replies | The list of replies (comments) attached to the annotation. (inherited from AnnotationBase) |
| state_before_annotation | The previous state of the text before annotating. (inherited from AnnotationBase) |
| type | The annotation type. (inherited from AnnotationBase) |
| user | The annotation author. (inherited from AnnotationBase) |
from groupdocs.annotation import Annotator
from groupdocs.annotation.models import Rectangle
from groupdocs.annotation.models.annotation_models import ResourcesRedactionAnnotation
def add_resources_redaction_annotation():
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")
Task guides that use ResourcesRedactionAnnotation:
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.