Add image annotation

Hello,

Is ti possible to add an image annotion on the pdf viewer ? (import an image jpg or other format to the document)
I only seen shape annotation, text annotation but not image...

Thanks
Nicolas

1 Reply 1 reply marked as answer

VS Vasugi Sivajothi Syncfusion Team March 10, 2021 08:53 AM UTC

Hi Nicolas, 
 
 
Thanks for contacting Syncfusion support. 
 
 
We can add an image using custom stamp icon in the default toolbar and we can also add the image using CustomStampSettings API. Please refer to the below code snippet and sample, 
 
Code snippet: 
 
 
<button @onclick="image">Add Custom Image</button> 
 
<PdfViewerCustomStampSettings CustomStamps="@pdfViewerCustomStamps"> 
</PdfViewerCustomStampSettings> 
 
private void image() 
{ 
pdfViewerCustomStamps = new List<PdfViewerCustomStamp>() 
{ 
new PdfViewerCustomStamp() 
{ 
CustomStampName = "Stamp2", 
CustomStampImageSource = "data:image/jpeg;base64,……..  " 
  } 
}; 
} 
 
 
 
 
 
Kindly try this and revert to us with more details if you have any concerns about this. 
 
 
Regards, 
Vasugi 


Marked as answer
Loader.
Up arrow icon