Hello,
Is there a possibility to add / remove points once a polygon annotation has been drawn?
Thanks and best regards,
Valentin
Hello,
Is there a possibility to add / remove points once a polygon annotation has been drawn?
Thanks and best regards,
Valentin
Hi Valentin,
You can use the “getPath” API on the annotation to get the array of points ( Apryse WebViewer Class: IPathAnnotation).
If you modify the array ( push, slice, etc), it will affect the annotation.
Alternatively, you can also use the “addPoint” , “popPath”, and “setPathPoint” to manipulate the path https://docs.apryse.com/api/web/Core.Annotations.PolygonAnnotation.html#main.
Anthony
Software Developer
PDFTron Systems, Inc.
www.pdftron.com
CONFIDENTIALITY NOTICE: This message (and any attachment to it) is intended only for the use of the individual or entity to which it is addressed in the header, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any reproduction, distribution, modification or use of the contents of this message (and any attachment to it) by any individual or entity other than the intended recipient is prohibited. If you have received this communication in error, please notify us immediately and delete the original.