__init__ constructor
init
Initializes a new PointAnnotation instance.
def __init__(self):
...
Example
from groupdocs.annotation import Annotator
from groupdocs.annotation.models import Rectangle
from groupdocs.annotation.models.annotation_models import PointAnnotation
with Annotator("./sample.pdf") as annotator:
point = PointAnnotation()
point.box = Rectangle(100, 100, 0, 0) # positioned by box origin
point.page_number = 0
point.message = "This is a point annotation"
annotator.add(point)
annotator.save("./output.pdf")
See Also
- class
PointAnnotation