Change Stamp image programmatically

Hi,

How to programmatically change the image stamp?

When i create a stamp i do this:

Image image = new Image();

 image.Source = "image.png";

Point tappedPoint = new Point();

tappedPoint.Y = Convert.ToDouble(100);

tappedPoint.X = Convert.ToDouble(100);

pdfViewerControl.AddStamp(image, 1, tappedPoint);


According to a certain condition i just need to change the image without having to re-create the stamp.

I need to find a stamp by name through a button and change the image.

Thanks.





1 Reply

AV Ashokkumar Viswanathan Syncfusion Team October 25, 2021 10:43 AM UTC

Hi Fernando, 
 
Greetings from Syncfusion support, 
 
Currently, it is not possible to change the image of the existing stamp annotation which is loaded in to PDFViewer control. Could you please explain your complete requirement and use case scenario of changing image content of already added stamp annotation elaborately, So that it will be useful for us to investigate further on this and assist you with a better solution at the earliest.    
 
Regards, 
Ashok Kumar Viswanathan. 


Loader.
Up arrow icon