How to Access Rubber Stamp through a custom function?

Hey, @Armando_Bollain it worked perfectly, thanks for the help.

I’ve two more doubts regarding the same,

1- After adding the annotation, I’m fetching the complete annotation list using the below code, but how can I get the content inside the rubber stamp? In the following case number “30”. (screenshot 1)

let docViewer = this.instance.Core.documentViewer
const annotManager = docViewer.getAnnotationManager();
let annotationList = annotManager.getAnnotationsList()

2- Also if you see in screenshot 1, there’s a varibale ToolName, which has value ““AnnotationCreateRubberStamp”” , for my usecase I want to change it to “AnnotationCreateStamp”. Is it possible?

Thanks