fromgroupdocs.annotationimportAnnotatorfromgroupdocs.annotation.modelsimportRectanglefromgroupdocs.annotation.models.annotation_modelsimportPointAnnotationwithAnnotator("./sample.pdf")asannotator:point=PointAnnotation()point.box=Rectangle(100,100,0,0)point.page_number=0point.message="This is a point annotation"annotator.add(point)annotator.save("./output.pdf")
fromgroupdocs.annotationimportAnnotatorfromgroupdocs.annotation.modelsimportRectanglefromgroupdocs.annotation.models.annotation_modelsimportPointAnnotationdefadd_point_annotation():withAnnotator("./sample.pdf")asannotator:point=PointAnnotation()point.box=Rectangle(100,100,0,0)# a point is positioned by its box originpoint.page_number=0point.message="This is a point annotation"annotator.add([point])annotator.save("./output.pdf")