# How to get the annotation id when I highlight some text and also how to get the page no, quads and highlighted text from my annotations object?

**URL:** <https://pdfjs.community/t/how-to-get-the-annotation-id-when-i-highlight-some-text-and-also-how-to-get-the-page-no-quads-and-highlighted-text-from-my-annotations-object/977>\
**Category:** Technical Support\
**Created:** [September 8, 2021, 6:55am UTC](https://pdfjs.community/t/how-to-get-the-annotation-id-when-i-highlight-some-text-and-also-how-to-get-the-page-no-quads-and-highlighted-text-from-my-annotations-object/977 "2021-09-08T06:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [September 8, 2021, 6:55am UTC](https://pdfjs.community/t/how-to-get-the-annotation-id-when-i-highlight-some-text-and-also-how-to-get-the-page-no-quads-and-highlighted-text-from-my-annotations-object/977/2 "2021-09-08T06:55:31Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

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

Guides:
- [Real-time collaboration client](https://pdfjs.express/documentation/collaboration/realtime-collaboration-client.8)
- [Understand coordinates in PDF.js Express - Viewer page coordinates](https://pdfjs.express/documentation/viewer/coordinates.8#viewer-page-coordinates)
- [XFDF format - In PDF.js Express Web Viewer](https://pdfjs.express/documentation/annotation/xfdf#in-pdf.js-express-web-viewer)

APIs:
- [Core.Annotations.TextHighlightAnnotation - new TextHighlightAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.TextHighlightAnnotation.html#TextHighlightAnnotation__anchor)
- [Core.Annotations.FreeTextAnnotation - new FreeTextAnnotation( [intent] [, initializer])](https://pdfjs.express/api/Core.Annotations.FreeTextAnnotation.html#FreeTextAnnotation__anchor)
- [Core.Annotations.TextUnderlineAnnotation - new TextUnderlineAnnotation( [initializer])](https://pdfjs.express/api/Core.Annotations.TextUnderlineAnnotation.html#TextUnderlineAnnotation__anchor)

Forums:
- [Overlapped Annotations doesn’t have measurements in it (getContents() is undefined)](https://pdfjs.community/t/overlapped-annotations-doesnt-have-measurements-in-it-getcontents-is-undefined/253/3)
- [Replace the comments pane](https://pdfjs.community/t/replace-the-comments-pane/852/1)
- [How to add scale and color to the converted annotation](https://pdfjs.community/t/how-to-add-scale-and-color-to-the-converted-annotation/305/1)

---

_[View the full topic](https://pdfjs.community/t/how-to-get-the-annotation-id-when-i-highlight-some-text-and-also-how-to-get-the-page-no-quads-and-highlighted-text-from-my-annotations-object/977)._
