You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [scroll-to-text-fragment](https://github.com/WICG/scroll-to-text-fragment) specification allows adding a URL fragment that highlights specific text on a page. This is particularly useful for referencing a part of a webpage from a search engine or for generative AI projects such as RAG (Retrieval-Augmented Generation). However, this functionality is only available for HTML pages.
PDFViewer complies with RFC 3778, which allows specifying a page to display.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The [scroll-to-text-fragment](https://github.com/WICG/scroll-to-text-fragment) specification allows adding a URL fragment that highlights specific text on a page. This is particularly useful for referencing a part of a webpage from a search engine or for generative AI projects such as RAG (Retrieval-Augmented Generation). However, this functionality is only available for HTML pages.
PDFViewer complies with RFC 3778, which allows specifying a page to display.
I believe it would be highly beneficial for all RAG projects working with PDF documents to extend PDFViewer to support the [scroll-to-text-fragment](https://github.com/WICG/scroll-to-text-fragment) specifications.
While there are some implementations using frameworks like React or others, they do not offer the pure JavaScript approach provided by pdf.js.
Do you think this feature could be implemented?
Beta Was this translation helpful? Give feedback.
All reactions