I have on java script function to create a rectangle annotation in Pdf Viewer using
pdfViewer.annotation.setAnnotationMode('Rectangle');
This will allow user to create a red rectangle annotation.
However, I have a new requirement from user to create a new button which do exactly the same as previous button but change the color of annotation to other color like green, blue, etc. Manually change color from the UI is not accepted in this case.
What I can think of is let the created annotation to be red. and after then modify those annotations color using API. Is this also possible?
Any suggestion would be really appreciate.
Best Regards,
AT.