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 main goal is to find a solution that gives a possibility to remove annoying copying the PDF.js release.
Thats really weird and I believe it can be much better)
Web components should be portable and easy to use.
That means that the component will be deeply reworked soon.
I'll try to keep all main functions if possible...
But anyway it's important for me to receive a feedback from people who using this.
Which features are the most important for you?
Maybe some ideas how improve the component?
Honestly I was looking for a HTML element that I can put in my code with a PDF url and then the user gets a viewer lol.
What would be sick too if I got highlighting of relevant text (array of strings / regex to match) and the page to scroll to / thing to highlight. That's really useful for RAG applications.
Activity
Rework, import viewer sources directly from prebuild files #39
janwirth commentedon Feb 21, 2026
Honestly I was looking for a HTML element that I can put in my code with a PDF url and then the user gets a viewer lol.
What would be sick too if I got highlighting of relevant text (array of strings / regex to match) and the page to scroll to / thing to highlight. That's really useful for RAG applications.
Refactor, add minified source files, fix tests #39
Fix demo, remove non-production attributes #39
alekswebnet commentedon Feb 23, 2026
@janwirth
New version is available - https://github.com/alekswebnet/pdfjs-viewer-element/releases/tag/v3.0.2
Seems like will work for your case)
You could try to use
searchattribute for highlighting text, also you can expeirement withviewerApplike this: https://github.com/alekswebnet/pdfjs-viewer-element/blob/master/demo/opened-findbar.html