Skip to content

Make this library standalone #39

Closed

Description

@alekswebnet

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?

Activity

  1. self-assigned this
    on Feb 20, 2026
  2. janwirth commented on Feb 21, 2026

    @janwirth

    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.

  3. linked a pull request that will close this issueMake this library standalone #40on Feb 22, 2026
  4. alekswebnet commented on Feb 23, 2026

    @alekswebnet
    CollaboratorAuthor

    @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

  5. locked and limited conversation to collaborators on Feb 28, 2026
  6. converted this issue into a discussion #41 on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions