This question has been asked 2 years ago.
We need the ability to “tag” documents with placeholder annotations (custom annotation classes), export them as xfdf, and them load them back into webviewer where they will be instantiated back into custom annotation instances.
We have many custom tag annotations which all look different and have different behavior. Currently they all extend stamp annotation where the annotation is drawn using the canvas context.
Drawbacks to using stamp is
- Enlarging the annotation introduces blurriness because it is an image
- Changing the appearance of the annotation or adding a new one is difficult because it must be drawn onto the canvas context programmatically.
How can we use HTMLAnnotation to create custom annotations?