Hi,
I am using following code to drop custom stamp on the PDF. Image height and width need to be resized while dropping it into the pdf doc but the size is not changing from its actual size.
Here is the code sample:
const tool = documentViewer.getTool('AnnotationCreateRubberStamp');
const stampImage ='my_large_image_in_base64';
const stampAnnot = new Annotations.StampAnnotation();
stampAnnot.ImageData = stampImage;
stampAnnot.Width = 190;
stampAnnot.Height = 80;
documentViewer.setToolMode(tool);
await tool.setRubberStamp(stampAnnot, 'Initials');
tool.showPreview();