Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade version pdfjs #248

Open
Venera12345 opened this issue Feb 14, 2024 · 7 comments
Open

Upgrade version pdfjs #248

Venera12345 opened this issue Feb 14, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@Venera12345
Copy link

  1. is it possible to upgrade the version of the pdf.js library inside your utility?
  2. Is this wrapper compatible with later versions of pdf.js
  3. Describe the pdf.js build mechanism for embedding in your wrapper
@kariudo
Copy link

kariudo commented Feb 15, 2024

I've noted some significant rendering issues with specific documents that work in current versions of PDF.js and not in this embedded version. So there are definitly upstream changes this library needs to absorb.

@kariudo
Copy link

kariudo commented Feb 27, 2024

I needed a version of this designed for the new 4.x+ versions of PDF.js and the default Mozilla viewer, I was going to my a PR here, but the changes ended up very substantial since Mozilla had a lot of breaking changes since this version here, which is likely beyond what the author here wants to accept.

For now you can find my fork here if anyone else is looking for a drop in compatible package to get the current versions of PDF.js and the Mozilla viewer.

https://github.com/kariudo/ng2-pdfjs-viewer published to npm as @kariudo/ng2-pdfjs-viewer

@codehippie1
Copy link
Contributor

@kariudo I love your effort in going through the pdf.js source (It is hard). Let me look into the fork. Would you like to collaborate on this and get the changes merged eventually?

@kariudo
Copy link

kariudo commented Feb 28, 2024

@kariudo I love your effort in going through the pdf.js source (It is hard). Let me look into the fork. Would you like to collaborate on this and get the changes merged eventually?

Sure thing, yeah their documentation is unreliable at best and non-existent at worst in most cases, I really did get stuck just rummaging in their source to make things work, particularly in response to changes with the eventbus. I took an axe to a lot of the build process in my branch to simplify things. But take a look at my changes and let me know.

@codehippie1
Copy link
Contributor

codehippie1 commented May 18, 2024 via email

@codehippie1 codehippie1 self-assigned this May 30, 2024
@codehippie1
Copy link
Contributor

@kariudo I found your email address using a github trick. I will shoot a direct email to you for collaboration.

@codehippie1
Copy link
Contributor

@kariudo I just went through the changes. Here are my initial thoughts (https://github.com/intbot/ng2-pdfjs-viewer/blob/master/lib/Pdfjs.4.x.upgrade.MD). Let me know your availability via an email reply

@codehippie1 codehippie1 added the enhancement New feature or request label May 30, 2024
@codehippie1 codehippie1 added this to the pdfjs 4.x upgrade milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants