Skip to content

Navigation Menu

Sign in
Sign up

Make this library standalone #41

alekswebnet started this conversation in General
Discussion options

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?

You must be logged in to vote

Replies: 2 comments

Comment options

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.

You must be logged in to vote
0 replies
Comment options

@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 search attribute for highlighting text, also you can expeirement with viewerApp like this: https://github.com/alekswebnet/pdfjs-viewer-element/blob/master/demo/opened-findbar.html

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Converted from issue

This discussion was converted from issue #39 on February 28, 2026 12:21.

AltStyle によって変換されたページ (->オリジナル) /