# Is it possible to insert image as annotation programmatically?

**URL:** <https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121>\
**Category:** Technical Support\
**Created:** [February 9, 2024, 6:18am UTC](https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121 "2024-02-09T06:18:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![achandran](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@achandran](https://pdfjs.community/u/achandran)\
**Post date:** [February 9, 2024, 6:18am UTC](https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121/1 "2024-02-09T06:18:53Z")

</div>

**Which product are you using?**  
PDF express

**PDF.js Express Version**

8.7.2

**Detailed description of issue**  
I want to insert image as annotation programmatically. I have base64 data of the image  
Or if have an option to convert base64 data into xfdf format, that would be enough  
**Expected behaviour**  
Should be able to add image annotation from outside

---

<div class="post-metadata">

**Author:** ![ejohnson](https://avatars.discourse-cdn.com/v4/letter/e/a3d4f5/32.png) [@ejohnson](https://pdfjs.community/u/ejohnson)\
**Post date:** [February 9, 2024, 5:13pm UTC](https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121/3 "2024-02-09T17:13:30Z")

</div>

Thank you for posting your question to our forum. We will provide you with an update as soon as possible.

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [February 9, 2024, 6:20pm UTC](https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121/4 "2024-02-09T18:20:41Z")

</div>

Hi there,

You can programatically create an image annotation as a stamp following this guide:

> **[PDF.js Express Image Stamp Annotation | Documentation](https://pdfjs.express/documentation/annotation/create-annotation-stamp)**

Best regards,  
Kevin Kim

---

<div class="post-metadata">

**Author:** ![achandran](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@achandran](https://pdfjs.community/u/achandran)\
**Post date:** [February 12, 2024, 1:48pm UTC](https://pdfjs.community/t/is-it-possible-to-insert-image-as-annotation-programmatically/3121/5 "2024-02-12T13:48:42Z")

</div>

This link was not showing in the documentation. This helps. Thanks team 🙂
