fromgroupdocs.annotationimportAnnotatorfromgroupdocs.annotation.modelsimportRectanglefromgroupdocs.annotation.models.annotation_modelsimportImageAnnotationdefadd_image_annotation():withAnnotator("./sample.pdf")asannotator:image=ImageAnnotation()image.box=Rectangle(100,100,100,100)image.image_path="./stamp.png"image.opacity=0.9image.angle=0.0image.page_number=0image.message="This is an image annotation"annotator.add(image)annotator.save("./output.pdf")