hypothesis / hypothesis/client
Update PDF.js (2025 edition)
- Dominant language
- Mustache
- Stars
- 730
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
PDF.js was last updated [nearly three years ago](https://github.com/hypothesis/pdf.js-hypothes.is/commit/3f51147786f9272f089d3a35040bf29633752852).
This issue covers updating to the latest version and addressing any compatibility issues we run into.
Issues identified:
1. Mismatch of Unicode normalization between text returned by text extraction APIs and text layer. There may also be mismatches in normalization with saved annotations' quotes.
2. Position of highlights is not updated after changing zoom level
3. Clicking on annotations doesn't select them in the sidebar, although creating a selection that includes an annotation does indicate there is a highlight (something preventing clicks from propagating?)
4. The [supported browser range](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#legacy-build) for the "legacy" build changed. As of May 2025 it requires Safari 16.4 (Mar 2023) and Chrome 110 (Feb 2023)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.