update method
Leave feedback
On this page
Updates document annotation by id.
Learn more
- More about how to update document annotations: https://docs.groupdocs.com/display/annotationnet/Update+annotations
def update(self, new_annotation):
...
| Parameter | Type | Description |
|---|---|---|
| new_annotation | AnnotationBase |
The annotation to update (Id should be provided). |
from groupdocs.annotation import Annotator
with Annotator("annotated.pdf") as annotator:
annotations = annotator.get()
annotator.update(annotations[0])
Updates collection of document annotations by overriding the previous list with a new one.
- More about how to update document annotations: https://docs.groupdocs.com/display/annotationnet/Update+annotations
def update(self, annotations):
...
| Parameter | Type | Description |
|---|---|---|
| annotations | List[AnnotationBase] |
The annotations list that will be set. |
from groupdocs.annotation import Annotator
with Annotator("annotated.pdf") as annotator:
all_annotations = annotator.get()
# modify an annotation as needed
annotator.update([all_annotations[0]]) # replace the current list with the modified annotation
annotator.save("edited.pdf")
- class
Annotator
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.