fromgroupdocs.annotationimportAnnotatorfromgroupdocs.annotation.modelsimportRectangle,PenStylefromgroupdocs.annotation.models.annotation_modelsimportArrowAnnotationfromgroupdocs.pydrawingimportColorwithAnnotator("./sample.pdf")asannotator:arrow=ArrowAnnotation()arrow.box=Rectangle(100,100,100,100)arrow.pen_color=Color.blue.to_argb()arrow.pen_width=2arrow.pen_style=PenStyle.SOLIDarrow.opacity=0.9arrow.page_number=0arrow.message="This is an arrow annotation"annotator.add(arrow)annotator.save("./output.pdf")