Change xfdf object result into text highlight annotation on document load

PDF.js Express Version

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}

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi there!

Yes, this should definitely be possible. Can you send me an example of what your XFDF from the server looks like? Where are you getting this XFDF?