# Change xfdf object result into text highlight annotation on document load

**URL:** <https://pdfjs.community/t/change-xfdf-object-result-into-text-highlight-annotation-on-document-load/846>\
**Category:** Technical Support\
**Created:** [June 24, 2021, 11:23am UTC](https://pdfjs.community/t/change-xfdf-object-result-into-text-highlight-annotation-on-document-load/846 "2021-06-24T11:23:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![chats2790](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@chats2790](https://pdfjs.community/u/chats2790)\
**Post date:** [June 24, 2021, 11:23am UTC](https://pdfjs.community/t/change-xfdf-object-result-into-text-highlight-annotation-on-document-load/846/1 "2021-06-24T11:23:20Z")

</div>

**PDF.js Express Version**  
7.3.3

**Detailed description of issue**  
Is there a way to convert resulting xfdf object into text highlights. My problem statement is to fetch xfdf object from server and by default convert them into highlightAnnotation on document loading.

**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

**Does your issue happen with every document, or just one?**  
{Answer here}

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

_[View the full topic](https://pdfjs.community/t/change-xfdf-object-result-into-text-highlight-annotation-on-document-load/846)._
