PDF.js Express Version
7.3.1
Detailed description of issue
On some action I able to remove that last added point of AnnotationCreateAreaMeasurement and AnnotationCreatePerimeterMeasurement by using below code snippet.
annotation.popPath()
Now I want to do the same scenario for rubber stamp - I will be getting that annotation object and then remove by popPath()
Expected behaviour
I should be able to remove that added rubber stamp. [Not by using delete]
Code snippet
const currentTool = this.viewerInstance.getToolMode();
if (currentTool.annotation && currentTool.annotation.popPath) {
currentTool.annotation.popPath();
}